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)
13
13
get_target_property (CLANG_LOCATION clang LOCATION )
14
14
get_filename_component (CLANG_LOCATION ${CLANG_LOCATION} DIRECTORY )
15
15
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
18
19
${CLANG_LOCATION} /clang-cl${CMAKE_EXECUTABLE_SUFFIX} )
19
- set (CMAKE_CXX_COMPILER_ID
20
+ set (CMAKE_CXX_COMPILER
20
21
${CLANG_LOCATION} /clang-cl${CMAKE_EXECUTABLE_SUFFIX} )
21
22
else ()
22
- set (CMAKE_C_COMPILER_ID
23
+ set (CMAKE_C_COMPILER
23
24
${CLANG_LOCATION} /clang${CMAKE_EXECUTABLE_SUFFIX} )
24
- set (CMAKE_CXX_COMPILER_ID
25
+ set (CMAKE_CXX_COMPILER
25
26
${CLANG_LOCATION} /clang++${CMAKE_EXECUTABLE_SUFFIX} )
26
27
endif ()
27
28
else ()
You can’t perform that action at this time.
0 commit comments