85f92d0a19
cmake requires at least C++17 to build correctly if math/octave is already installed. math/octave is now a fixed dependency for nlopt, as this is the only way to guarantee that Octave packages such as math/octave-forge-mboct-fem-pkg will find a sufficiently complete nlopt. PR: 289110 Reported by: stephen@ MFH: 2025Q3
12 lines
578 B
JSON
12 lines
578 B
JSON
--- CMakePresets.json.orig 2025-02-04 18:29:30 UTC
|
|
+++ CMakePresets.json
|
|
@@ -8,7 +8,7 @@
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
|
"CMAKE_C_FLAGS": "-Wall -Wextra -Wpedantic -Wshadow",
|
|
- "CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wshadow -D_GLIBCXX_ASSERTIONS -fno-inline",
|
|
+ "CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wshadow -D_GLIBCXX_ASSERTIONS -fno-inline -std=c++17",
|
|
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/install",
|
|
"SWIG_COMPILE_FLAGS": "-O1 -Wno-unused-parameter -Wno-shadow"
|
|
}
|