Author: Andreas Tille Last-Update: 2025-10-21 Description: Try hard to get bifrost build with recent gcc --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,6 +54,7 @@ else() check_cxx_compiler_flag(-std=c++17 COMPILER_SUPPORTS_CXX17) if(COMPILER_SUPPORTS_CXX17) set(CMAKE_CXX_STANDARD 17) + set(CMAKE_CXX_EXTENSIONS ON) else() set(CMAKE_CXX_STANDARD 11) endif() @@ -63,7 +64,8 @@ endif() #add_compile_options(-Wall -Wno-unused-function) add_compile_options(-Wno-subobject-linkage) # Suppress bifrost warning -set(PROJECT_BIFROST_CMAKE_CXX_FLAGS "-Wno-subobject-linkage -Wno-return-type") # Suppress bifrost warning +add_compile_options(-Wno-deprecated-declarations) # More relaxation for bifrost +set(PROJECT_BIFROST_CMAKE_CXX_FLAGS "-Wno-subobject-linkage -Wno-return-type -Wno-deprecated-declarations") # Suppress bifrost warning if(LINK MATCHES static) message("static build")