Debian Codegraph @

debian/patches/std_gnu17.patch

raw symbols SCIP
1 Author: Andreas Tille <[email protected]>
2 Last-Update: 2025-10-21
3 Description: Try hard to get bifrost build with recent gcc
4
5 --- a/CMakeLists.txt
6 +++ b/CMakeLists.txt
7 @@ -54,6 +54,7 @@ else()
8 check_cxx_compiler_flag(-std=c++17 COMPILER_SUPPORTS_CXX17)
9 if(COMPILER_SUPPORTS_CXX17)
10 set(CMAKE_CXX_STANDARD 17)
11 + set(CMAKE_CXX_EXTENSIONS ON)
12 else()
13 set(CMAKE_CXX_STANDARD 11)
14 endif()
15 @@ -63,7 +64,8 @@ endif()
16
17 #add_compile_options(-Wall -Wno-unused-function)
18 add_compile_options(-Wno-subobject-linkage) # Suppress bifrost warning
19 -set(PROJECT_BIFROST_CMAKE_CXX_FLAGS "-Wno-subobject-linkage -Wno-return-type") # Suppress bifrost warning
20 +add_compile_options(-Wno-deprecated-declarations) # More relaxation for bifrost
21 +set(PROJECT_BIFROST_CMAKE_CXX_FLAGS "-Wno-subobject-linkage -Wno-return-type -Wno-deprecated-declarations") # Suppress bifrost warning
22
23 if(LINK MATCHES static)
24 message("static build")