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

Check compiler against CMAKE_CXX_COMPILER_ID
This commit is contained in:
Felix Weilbach 2021-06-07 15:44:16 +02:00 committed by GitHub
commit e62453dc66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()