mirror of
https://github.com/reactos/CMake.git
synced 2024-11-26 21:10:29 +00:00
FindIce: Support clang-cl by checking CMAKE_CXX_SIMULATE_ID
This applies commit d48bf97f
, which does the same for FindBoost, to FindIce.
This commit is contained in:
parent
713f1a0e7d
commit
541f079bd7
@ -259,7 +259,7 @@ function(_Ice_FIND)
|
||||
endif()
|
||||
|
||||
unset(vcvers)
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC" OR "${CMAKE_CXX_SIMULATE_ID}" STREQUAL "MSVC")
|
||||
if(MSVC_TOOLSET_VERSION GREATER_EQUAL 141)
|
||||
set(vcvers "141;140")
|
||||
elseif(MSVC_TOOLSET_VERSION GREATER_EQUAL 100)
|
||||
@ -435,7 +435,7 @@ function(_Ice_FIND)
|
||||
set(component_library "${component}")
|
||||
unset(component_library_release_names)
|
||||
unset(component_library_debug_names)
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC" OR "${CMAKE_CXX_SIMULATE_ID}" STREQUAL "MSVC")
|
||||
string(REGEX MATCH ".+\\+\\+11$" component_library_cpp11 "${component_library}")
|
||||
if(component_library_cpp11)
|
||||
string(REGEX REPLACE "^(.+)(\\+\\+11)$" "\\1" component_library "${component_library}")
|
||||
|
Loading…
Reference in New Issue
Block a user