Windows: cmake: Fix unknown arguments error with VS2017 generator

This commit is contained in:
Marshall Greenblatt 2021-01-21 11:09:56 -05:00
parent 5055d1f1d5
commit 9d4f862210
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ endif()
# Determine the project architecture.
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")
elseif(CMAKE_SIZEOF_VOID_P MATCHES 8)
set(PROJECT_ARCH "x86_64")