blob: 4cc24139004e570e99160f64a4ec13b433e9b204 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- CMakeLists.txt.orig 2025-02-04 18:29:30 UTC
+++ CMakeLists.txt
@@ -147,7 +147,7 @@ if (NLOPT_CXX OR NLOPT_PYTHON OR NLOPT_GUILE OR NLOPT_
if (NLOPT_CXX OR NLOPT_PYTHON OR NLOPT_GUILE OR NLOPT_OCTAVE OR NLOPT_JAVA)
check_cxx_symbol_exists (__cplusplus ciso646 SYSTEM_HAS_CXX)
if (SYSTEM_HAS_CXX)
- set (CMAKE_CXX_STANDARD 11) # set the standard to C++11 but do not require it
+ set (CMAKE_CXX_STANDARD 17) # set the standard to C++17 but do not require it
if (NLOPT_CXX)
set (CMAKE_CXX_STANDARD_REQUIRED ON) # if we build C++ API, we do need C++11
|