Browse Source

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.
Hristo Stamenov 4 years ago
parent
commit
c629200b93
1 changed files with 2 additions and 2 deletions
  1. 2 2
      CMakeLists.txt

+ 2 - 2
CMakeLists.txt

@@ -199,8 +199,8 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
 	set(BITS 64)
 	set(BITS 64)
 endif(CMAKE_SIZEOF_VOID_P EQUAL 8)
 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)
 if(ANDROID)
 	# Added the android abi after system name
 	# Added the android abi after system name