summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorWilliam R. Dieter <william.r.dieter@intel.com>2020-11-02 20:11:25 -0500
committerBrad King <brad.king@kitware.com>2021-01-28 09:05:35 -0500
commit9bef4bef0fbe69825f9103365a89be4696b6e1d0 (patch)
tree4314db4c31005b924bc9b18820f4d7267b5d10dc /Modules
parentf5d79dec5345473cd09a0f56e4603073baf84065 (diff)
downloadcmake-9bef4bef0fbe69825f9103365a89be4696b6e1d0.tar.gz
GenerateExportHeader: Recognize Intel < 12 more strictly
Match exactly the `Intel` compiler id. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/GenerateExportHeader.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake
index 2c4572ff54..a9a9c59354 100644
--- a/Modules/GenerateExportHeader.cmake
+++ b/Modules/GenerateExportHeader.cmake
@@ -221,7 +221,7 @@ macro(_test_compiler_hidden_visibility)
set(GCC_TOO_OLD TRUE)
elseif(CMAKE_COMPILER_IS_GNUCC AND CMAKE_C_COMPILER_VERSION VERSION_LESS "4.2")
set(GCC_TOO_OLD TRUE)
- elseif(CMAKE_CXX_COMPILER_ID MATCHES Intel AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "12.0")
+ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "12.0")
set(_INTEL_TOO_OLD TRUE)
endif()