Skip to content

Commit

Permalink
adding GCC only flags
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxiBoether committed Jan 7, 2025
1 parent 4b098df commit f054328
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(MODYN_COMPILE_DEFINITIONS "")
set(MODYN_COMPILE_OPTIONS "-Wall" "-Wextra" "-Werror" "-Wpedantic" "-Wextra-semi" "-Wnon-virtual-dtor" "-Wunused"
"-Wzero-as-null-pointer-constant" "-Wno-missing-requires"
"-Wzero-as-null-pointer-constant"
)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# Additional checks not supported by GCC -- some are supported on GCC, but not ignorable / not filterable
Expand All @@ -57,6 +57,10 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi")
endif()

if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
list(APPEND MODYN_COMPILE_OPTIONS "-Wno-missing-requires") # causes issues since gcc 12 and grpc 1.69
endif()

if (${MODYN_TEST_COVERAGE})
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
message(STATUS "Running with coverage flags")
Expand Down

0 comments on commit f054328

Please sign in to comment.