From 2fe7f8b85eb5290dab393a8492348e1dc340733c Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Wed, 9 Aug 2023 16:57:45 -0700 Subject: [PATCH] CMake: Warnings on AppleClang (#167) Duplicate from Clang, so our AppleClang based developers get a nice set of warnings that we enforce as well. --- cmake/pyAMReXFunctions.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/pyAMReXFunctions.cmake b/cmake/pyAMReXFunctions.cmake index b81433af..37e6d21c 100644 --- a/cmake/pyAMReXFunctions.cmake +++ b/cmake/pyAMReXFunctions.cmake @@ -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")