summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-18 13:19:39 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-02-18 13:19:45 (GMT)
commit94408da2a73a60e0b384c8066ff8200dadaa1bdf (patch)
tree6eeb46b41b760a074a68623c4b86c3f6ab3078fc /Modules
parenteefcf2e0a6ed07fd288314d91eaa4a96d9da6ec8 (diff)
parentdc7b6c2c0658b5776ce6d4cdece19ce13eb2e9ae (diff)
downloadCMake-94408da2a73a60e0b384c8066ff8200dadaa1bdf.zip
CMake-94408da2a73a60e0b384c8066ff8200dadaa1bdf.tar.gz
CMake-94408da2a73a60e0b384c8066ff8200dadaa1bdf.tar.bz2
Merge topic 'fix-intel-compiler-check' into release-3.20
dc7b6c2c06 DetermineCompiler: Fix copy-paste error in Intel Compiler detection Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5818
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeDetermineCCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake
index 59c0574..cd07ba9 100644
--- a/Modules/CMakeDetermineCCompiler.cmake
+++ b/Modules/CMakeDetermineCCompiler.cmake
@@ -135,7 +135,7 @@ else()
# They pre-date our support for the GNU-like variant targeting the
# MSVC ABI so we do not consider that here.
if(CMAKE_C_COMPILER_ID STREQUAL "Clang"
- OR "x${CMAKE_${lang}_COMPILER_ID" STREQUAL "xIntelLLVM")
+ OR "x${CMAKE_C_COMPILER_ID}" STREQUAL "xIntelLLVM")
if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC")
set(CMAKE_C_COMPILER_FRONTEND_VARIANT "MSVC")
else()