Skip to content

Commit

Permalink
ci: more exception for some compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
SGSSGene committed May 17, 2023
1 parent a87847b commit f79dd4c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ if (NOT TARGET mason_interface)
add_library ("mason_interface" INTERFACE)
target_link_libraries ("mason_interface" INTERFACE seqan2::seqan2)
target_include_directories ("mason_interface" INTERFACE "${CMAKE_CURRENT_LIST_DIR}/include")
target_compile_options ("mason_interface" INTERFACE "-Wpedantic" "-Wall")
target_compile_options ("mason_interface" INTERFACE)
target_link_options ("mason_interface" INTERFACE)
# This warning is suppressed in SeqAn2, but #pragma GCC diagnostic takes no effect with LTO (bug)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options ("mason_interface" INTERFACE "-Wextra" "-flto=auto")
target_compile_options ("mason_interface" INTERFACE "-Wextra" "-flto=auto" "-Wpedantic" "-Wall")
target_link_options ("mason_interface" INTERFACE "-Wno-alloc-size-larger-than" "-flto=auto")
endif ()
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options ("mason_interface" INTERFACE "-Wextra")
target_compile_options ("mason_interface" INTERFACE "-Wextra" "-Wpedantic" "-Wall")
target_link_options ("mason_interface" INTERFACE "-Wno-alloc-size-larger-than")
endif ()

Expand Down Expand Up @@ -90,7 +90,9 @@ add_executable (mason_tests src/mason/mason_tests.cpp)
target_link_libraries (mason_tests mason_sim)
add_test (mason_tests ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/mason_tests)

if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11
OR CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM"
OR CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
message("Skipping test - known incompatibles with some older compilers")
else()
add_test (NAME app_test_mason
Expand Down

0 comments on commit f79dd4c

Please sign in to comment.