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) target_compile_options(TurtleTestMain INTERFACE -Wno-unused-function)
endif() endif()
if(TURTLE_WERROR) 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) target_compile_options(TurtleTestMain INTERFACE -Werror)
endif() endif()
elseif(MSVC) elseif(MSVC)
@ -98,4 +102,4 @@ foreach(testFile IN LISTS benchFiles)
add_executable(${name} EXCLUDE_FROM_ALL ${testFile}) add_executable(${name} EXCLUDE_FROM_ALL ${testFile})
target_link_libraries(${name} PRIVATE turtle::turtle TurtleTestMain) target_link_libraries(${name} PRIVATE turtle::turtle TurtleTestMain)
add_test(NAME ${name} COMMAND "${CMAKE_COMMAND}" --build ${CMAKE_BINARY_DIR} --target ${name} --config $<CONFIG>) add_test(NAME ${name} COMMAND "${CMAKE_COMMAND}" --build ${CMAKE_BINARY_DIR} --target ${name} --config $<CONFIG>)
endforeach() endforeach()