Skip to content

Commit c629200

Browse files
authored
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.
1 parent 476a870 commit c629200

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
199199
set(BITS 64)
200200
endif(CMAKE_SIZEOF_VOID_P EQUAL 8)
201201

202-
string(TOLOWER ${CMAKE_SYSTEM_NAME} SYSTEM_NAME)
203-
string(TOLOWER ${CMAKE_BUILD_TYPE} BUILD_TYPE)
202+
string(TOLOWER "${CMAKE_SYSTEM_NAME}" SYSTEM_NAME)
203+
string(TOLOWER "${CMAKE_BUILD_TYPE}" BUILD_TYPE)
204204

205205
if(ANDROID)
206206
# Added the android abi after system name

0 commit comments

Comments
 (0)