From c629200b939dcd4f870a3f1957e9e1f67a50e597 Mon Sep 17 00:00:00 2001 From: Hristo Stamenov Date: Thu, 20 May 2021 15:47:20 +0300 Subject: [PATCH] Update `string(TOLOWER ...)` to take string versions of CMake variables (#561) On some generators (MSVC) there is the issue that this line produces cause by the variable being expanded and not being surrounded by quotes. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e0e3b7bc..8281129a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -199,8 +199,8 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(BITS 64) endif(CMAKE_SIZEOF_VOID_P EQUAL 8) -string(TOLOWER ${CMAKE_SYSTEM_NAME} SYSTEM_NAME) -string(TOLOWER ${CMAKE_BUILD_TYPE} BUILD_TYPE) +string(TOLOWER "${CMAKE_SYSTEM_NAME}" SYSTEM_NAME) +string(TOLOWER "${CMAKE_BUILD_TYPE}" BUILD_TYPE) if(ANDROID) # Added the android abi after system name