freebsd-ports/math/nlopt/files/patch-src_swig_CMakeLists.txt
Rainer Hurling cdc0abb2c2 math/nlopt: Update to 2.9.0
- New NLOPT_LUKSAN cmake option to build without Luksan LGPL code
- Dropped unused LD_LBFGS_NOCEDAL enum value
- Python 3.13 support
- Fixed COBYLA not returning the optimum
- Fixed SLSQP returning infeasible optimum
- Fixed STOGO not registering new optimum
- Various minor bugfixes

Changelog: https://github.com/stevengj/nlopt/compare/v2.8.0...v2.9.0

Reported by:	portscout, Repology
2024-11-12 16:34:04 +01:00

16 lines
707 B
Text

--- src/swig/CMakeLists.txt.orig 2024-11-10 18:47:56 UTC
+++ src/swig/CMakeLists.txt
@@ -57,10 +57,10 @@ if (GUILE_FOUND)
# swig_add_module is deprecated
swig_add_library (nlopt_guile LANGUAGE guile SOURCES nlopt.i)
- target_include_directories (nlopt_guile PRIVATE ${GUILE_INCLUDE_DIRS})
-
+ target_compile_options(nlopt_guile PRIVATE ${GUILE_CFLAGS})
+
swig_link_libraries (nlopt_guile ${nlopt_lib})
- target_link_libraries (nlopt_guile ${GUILE_LIBRARIES})
+ target_link_options(nlopt_guile PRIVATE ${GUILE_LDFLAGS})
set_target_properties (nlopt_guile PROPERTIES COMPILE_FLAGS "${SWIG_COMPILE_FLAGS}")
file (RELATIVE_PATH _REL_GUILE_SITE_PATH ${GUILE_ROOT_DIR} ${GUILE_SITE_DIR})