diff options
author | William R. Dieter <william.r.dieter@intel.com> | 2020-11-03 01:11:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-28 14:05:35 (GMT) |
commit | 9bef4bef0fbe69825f9103365a89be4696b6e1d0 (patch) | |
tree | 4314db4c31005b924bc9b18820f4d7267b5d10dc | |
parent | f5d79dec5345473cd09a0f56e4603073baf84065 (diff) | |
download | CMake-9bef4bef0fbe69825f9103365a89be4696b6e1d0.zip CMake-9bef4bef0fbe69825f9103365a89be4696b6e1d0.tar.gz CMake-9bef4bef0fbe69825f9103365a89be4696b6e1d0.tar.bz2 |
GenerateExportHeader: Recognize Intel < 12 more strictly
Match exactly the `Intel` compiler id.
Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
-rw-r--r-- | Modules/GenerateExportHeader.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake index 2c4572f..a9a9c59 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() |