Disable Werror for unknown pragmas in tests

Closes #2375
This commit is contained in:
Martin Hořeňovský 2022-04-17 21:11:36 +02:00
parent 62fd660583
commit d71b4617e9
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -354,7 +354,7 @@ endif()
if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang|GNU" ) if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang|GNU" )
target_compile_options( SelfTest PRIVATE -Wall -Wextra -Wunreachable-code -Wpedantic -Wmissing-declarations ) target_compile_options( SelfTest PRIVATE -Wall -Wextra -Wunreachable-code -Wpedantic -Wmissing-declarations )
if (CATCH_ENABLE_WERROR) if (CATCH_ENABLE_WERROR)
target_compile_options( SelfTest PRIVATE -Werror ) target_compile_options( SelfTest PRIVATE -Werror -Wno-error=pragmas )
endif() endif()
endif() endif()
# Clang specific options go here # Clang specific options go here