File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,16 @@ if(NOT CMAKE_C_COMPILER_ID MATCHES Clang)
1313 get_target_property (CLANG_LOCATION clang LOCATION )
1414 get_filename_component (CLANG_LOCATION ${CLANG_LOCATION} DIRECTORY )
1515
16- if (CMAKE_C_COMPILER_ID STREQUAL MSVC OR CMAKE_C_SIMULATE_ID STREQUAL MSVC )
17- set (CMAKE_C_COMPILER_ID
16+ if ("${CMAKE_C_COMPILER_ID} " STREQUAL "MSVC" OR
17+ "${CMAKE_C_SIMULATE_ID} " STREQUAL "MSVC" )
18+ set (CMAKE_C_COMPILER
1819 ${CLANG_LOCATION} /clang-cl${CMAKE_EXECUTABLE_SUFFIX} )
19- set (CMAKE_CXX_COMPILER_ID
20+ set (CMAKE_CXX_COMPILER
2021 ${CLANG_LOCATION} /clang-cl${CMAKE_EXECUTABLE_SUFFIX} )
2122 else ()
22- set (CMAKE_C_COMPILER_ID
23+ set (CMAKE_C_COMPILER
2324 ${CLANG_LOCATION} /clang${CMAKE_EXECUTABLE_SUFFIX} )
24- set (CMAKE_CXX_COMPILER_ID
25+ set (CMAKE_CXX_COMPILER
2526 ${CLANG_LOCATION} /clang++${CMAKE_EXECUTABLE_SUFFIX} )
2627 endif ()
2728 else ()
You can’t perform that action at this time.
0 commit comments