summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-29 13:23:01 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-11-29 13:23:11 (GMT)
commit9e961930ee1ab526467651935bf7c285c170432d (patch)
tree207d9d845e51c1c6fd95fdb74c9eb5d3f1decf3a /Modules
parent04f869bb4645aae8171f70746898ca20d3c05be1 (diff)
parent458c589fe33fb5e827e9dbcd7799a0cac2559dba (diff)
downloadCMake-9e961930ee1ab526467651935bf7c285c170432d.zip
CMake-9e961930ee1ab526467651935bf7c285c170432d.tar.gz
CMake-9e961930ee1ab526467651935bf7c285c170432d.tar.bz2
Merge topic 'win-clang-debug'
458c589f FindBoost: Add Windows ABI tag for Clang debug 00e39a4a FindBoost: Use CMAKE_CXX_COMPILER_ID for Intel compiler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1529
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBoost.cmake8
1 files changed, 3 insertions, 5 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 6f60eeb..0786248 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -429,9 +429,7 @@ endfunction()
# Guesses Boost's compiler prefix used in built library names
# Returns the guess by setting the variable pointed to by _ret
function(_Boost_GUESS_COMPILER_PREFIX _ret)
- if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel"
- OR CMAKE_CXX_COMPILER MATCHES "icl"
- OR CMAKE_CXX_COMPILER MATCHES "icpc")
+ if("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xIntel")
if(WIN32)
set (_boost_COMPILER "-iw")
else()
@@ -1395,8 +1393,8 @@ endif()
# support libraries
if(WIN32 AND Boost_USE_DEBUG_RUNTIME)
if("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC"
- OR "${CMAKE_CXX_COMPILER}" MATCHES "icl"
- OR "${CMAKE_CXX_COMPILER}" MATCHES "icpc")
+ OR "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xClang"
+ OR "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xIntel")
string(APPEND _boost_DEBUG_ABI_TAG "g")
endif()
endif()