diff --git a/Phys/FunctorCore/CMakeLists.txt b/Phys/FunctorCore/CMakeLists.txt index 8ef5680d8aeb5e165a07f0365ec68f33e80c64e8..5895820f35b84593f24d0de39bddcf02a3a14062 100644 --- a/Phys/FunctorCore/CMakeLists.txt +++ b/Phys/FunctorCore/CMakeLists.txt @@ -222,6 +222,14 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${preprocessed_header_name}" TYPE INC # something for later string(REPLACE " -pedantic" "" cxx_flags_without_pedantic ${CMAKE_CXX_FLAGS}) +# Prevent GCC notes on ARM +# note: parameter passing for argument of type 'std::pair<double, double>' when C++17 is enabled changed to match C++14 in GCC 10.1 +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111516 +if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") + message(STATUS "Appending -Wno-psabi to functor build compiler flags") + set(cxx_flags_without_pedantic "${cxx_flags_without_pedantic} -Wno-psabi ") +endif() + # the below logic assumes that `CMAKE_CXX_COMPILER` points to a compiler # wrapper. These wrappers are created by the cmake logic defined in # lcg-toolchains