瀏覽代碼

Merge topic 'fix-intel-compiler-check' into release-3.20

dc7b6c2c06 DetermineCompiler: Fix copy-paste error in Intel Compiler detection

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5818
Brad King 4 年之前
父節點
當前提交
94408da2a7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Modules/CMakeDetermineCCompiler.cmake

+ 1 - 1
Modules/CMakeDetermineCCompiler.cmake

@@ -135,7 +135,7 @@ else()
     # They pre-date our support for the GNU-like variant targeting the
     # They pre-date our support for the GNU-like variant targeting the
     # MSVC ABI so we do not consider that here.
     # MSVC ABI so we do not consider that here.
     if(CMAKE_C_COMPILER_ID STREQUAL "Clang"
     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")
       if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC")
         set(CMAKE_C_COMPILER_FRONTEND_VARIANT "MSVC")
         set(CMAKE_C_COMPILER_FRONTEND_VARIANT "MSVC")
       else()
       else()