Skip to content

Commit

Permalink
change tests cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
kelbon committed Aug 13, 2023
1 parent 8a0b00b commit cda8f96
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ set_target_properties(kelcorotest PROPERTIES
CXX_STANDARD 20
)

if(UNIX)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(kelcorotest PUBLIC "-fsanitize=undefined" "-fsanitize=address")
endif()
endif()
add_executable(generator_tests ${CMAKE_CURRENT_SOURCE_DIR}/tests_generator.cpp)

target_link_libraries(generator_tests PUBLIC kelcorolib)
Expand All @@ -23,11 +18,6 @@ set_target_properties(generator_tests PROPERTIES
CMAKE_CXX_STANDARD_REQUIRED ON
CXX_STANDARD 20
)
if (UNIX)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(generator_tests PUBLIC "-fsanitize=undefined" "-fsanitize=address")
endif()
endif()
add_test(NAME generator_tests COMMAND generator_tests)

add_test(NAME test_kelcorotest COMMAND kelcorotest)
Expand Down

0 comments on commit cda8f96

Please sign in to comment.