mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Don't error when TURTLE_AUTO_PTR=ON
This commit is contained in:
parent
492e6281d7
commit
558e1ca135
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue