Windows: cmake: Fix unknown arguments error with VS2017 generator
This commit is contained in:
parent
5055d1f1d5
commit
9d4f862210
|
@ -26,7 +26,7 @@ endif()
|
||||||
|
|
||||||
# Determine the project architecture.
|
# Determine the project architecture.
|
||||||
if(NOT DEFINED PROJECT_ARCH)
|
if(NOT DEFINED PROJECT_ARCH)
|
||||||
if(OS_WINDOWS AND ${CMAKE_GENERATOR_PLATFORM} STREQUAL "arm64")
|
if(OS_WINDOWS AND "${CMAKE_GENERATOR_PLATFORM}" STREQUAL "arm64")
|
||||||
set(PROJECT_ARCH "arm64")
|
set(PROJECT_ARCH "arm64")
|
||||||
elseif(CMAKE_SIZEOF_VOID_P MATCHES 8)
|
elseif(CMAKE_SIZEOF_VOID_P MATCHES 8)
|
||||||
set(PROJECT_ARCH "x86_64")
|
set(PROJECT_ARCH "x86_64")
|
||||||
|
|
Loading…
Reference in New Issue