We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 019f61a commit a75f3d9Copy full SHA for a75f3d9
src/octave/CMakeLists.txt
@@ -35,6 +35,10 @@ if (OCTAVE_FOUND)
35
octave_add_oct (nlopt_optimize SOURCES nlopt_optimize-oct.cc ${CMAKE_CURRENT_BINARY_DIR}/nlopt_optimize_usage.h LINK_LIBRARIES ${nlopt_lib})
36
target_include_directories (nlopt_optimize PRIVATE ${OCTAVE_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR} ${PROJECT_SOURCE_DIR}/src/api)
37
38
+ if (OCTAVE_VERSION_MAJOR GREATER 10)
39
+ target_compile_features(nlopt_optimize PRIVATE cxx_std_17)
40
+ endif()
41
+
42
if (NOT DEFINED INSTALL_OCT_DIR)
43
file (RELATIVE_PATH INSTALL_OCT_DIR ${OCTAVE_ROOT_DIR} ${OCTAVE_OCT_SITE_DIR})
44
endif ()
0 commit comments