fix case in compiler name check
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Tue, 2 Feb 2021 09:53:46 +0000 (10:53 +0100)
committerGitHub <noreply@github.com>
Tue, 2 Feb 2021 09:53:46 +0000 (10:53 +0100)
Co-authored-by: xoviat <49173759+xoviat@users.noreply.github.com>
cmake/system.cmake

index a5996b9befd13d7da35bbbdc90b37c5894e707a4..d52af3aa1d298db2d1bc772bc051cd6f377f2853 100644 (file)
@@ -155,7 +155,7 @@ if (DEFINED TARGET)
         else()
           set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=skylake-avx512")
         endif()
-    elseif (${CMAKE_C_COMPILER_ID} STREQUAL "CLANG" OR ${CMAKE_C_COMPILER_ID} STREQUAL "AppleClang")
+    elseif (${CMAKE_C_COMPILER_ID} STREQUAL "Clang" OR ${CMAKE_C_COMPILER_ID} STREQUAL "AppleClang")
          if (${CMAKE_C_COMPILER_VERSION} VERSION_GREATER 8.99)
           set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=cooperlake")
         else()