Skip to content

Commit

Permalink
CMake: Warnings on AppleClang (#167)
Browse files Browse the repository at this point in the history
Duplicate from Clang, so our AppleClang based developers
get a nice set of warnings that we enforce as well.
  • Loading branch information
ax3l authored Aug 9, 2023
1 parent 859f9b6 commit 2fe7f8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/pyAMReXFunctions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ macro(set_cxx_warnings)

#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Weverything")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wunreachable-code")
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
Expand Down

0 comments on commit 2fe7f8b

Please sign in to comment.