1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: Fix FTBFS against Octave 10
Octave 10 headers use the C++17 standard, while the NLopt build system enforces
the C++11 standard. This patch removes -std=c++11 from the compiler flags, to
allow C++17 headers.
Author: Sébastien Villemot <sebastien@debian.org>
Bug-Debian: https://bugs.debian.org/1114587
Forwarded: no
Last-Update: 2025-09-15
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -160,7 +160,6 @@ if (NLOPT_CXX OR NLOPT_PYTHON OR NLOPT_G
if (SYSTEM_HAS_CXX)
check_cxx_compiler_flag ("-std=c++11" SUPPORTS_STDCXX11)
if (SUPPORTS_STDCXX11)
- set (CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
if (NLOPT_CXX)
set (NLOPT_CXX11 ON)
endif ()
|