summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorjspam <5172-jspam@users.noreply.gitlab.kitware.com>2019-05-03 05:32:14 (GMT)
committerjspam <5172-jspam@users.noreply.gitlab.kitware.com>2019-05-03 05:32:14 (GMT)
commit541f079bd7ba7f141218ed93177af4d848e516fa (patch)
tree3a92dc3cbdcd45eff09b172c13ea915e6e30385f /Modules
parent713f1a0e7da7c76b0502b4ee885a74eb2e07c3b4 (diff)
downloadCMake-541f079bd7ba7f141218ed93177af4d848e516fa.zip
CMake-541f079bd7ba7f141218ed93177af4d848e516fa.tar.gz
CMake-541f079bd7ba7f141218ed93177af4d848e516fa.tar.bz2
FindIce: Support clang-cl by checking CMAKE_CXX_SIMULATE_ID
This applies commit d48bf97f, which does the same for FindBoost, to FindIce.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindIce.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindIce.cmake b/Modules/FindIce.cmake
index 1e0f0b8..5ce2b42 100644
--- a/Modules/FindIce.cmake
+++ b/Modules/FindIce.cmake
@@ -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}")