Don't error when TURTLE_AUTO_PTR=ON

This commit is contained in:
Alexander Grund 2020-07-14 19:14:36 +02:00
parent 492e6281d7
commit 558e1ca135
No known key found for this signature in database
GPG key ID: AA48A0760367A42B

View file

@ -21,6 +21,10 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang"
target_compile_options(TurtleTestMain INTERFACE -Wno-unused-function)
endif()
if(TURTLE_WERROR)
check_cxx_compiler_flag(-Wdeprecated-declarations TURTLE_CXX_DEPRECATED_DECLARATIONS)
if(TURTLE_CXX_DEPRECATED_DECLARATIONS)
target_compile_options(TurtleTestMain INTERFACE -Wno-error=deprecated-declarations)
endif()
target_compile_options(TurtleTestMain INTERFACE -Werror)
endif()
elseif(MSVC)