Parcourir la source

Merge pull request #3410 from nextcloud/bugfix/check-against-cmake-cxx-compiler-id

Check compiler against CMAKE_CXX_COMPILER_ID
Felix Weilbach il y a 4 ans
Parent
commit
e62453dc66
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      cmake/modules/Warnings.cmake

+ 1 - 1
cmake/modules/Warnings.cmake

@@ -5,7 +5,7 @@
 if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
 
     # Use this only for Clang
-    if (CMAKE_CXX_COMPILER MATCHES "Clang")
+    if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -Wno-long-long -Wno-gnu-zero-variadic-macro-arguments")
     endif()