summaryrefslogtreecommitdiff
path: root/math/nlopt/files/patch-CMakePresets.json
diff options
context:
space:
mode:
Diffstat (limited to 'math/nlopt/files/patch-CMakePresets.json')
-rw-r--r--math/nlopt/files/patch-CMakePresets.json11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/nlopt/files/patch-CMakePresets.json b/math/nlopt/files/patch-CMakePresets.json
new file mode 100644
index 000000000000..e557968bc963
--- /dev/null
+++ b/math/nlopt/files/patch-CMakePresets.json
@@ -0,0 +1,11 @@
+--- 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"
+ }