aboutsummaryrefslogtreecommitdiff
path: root/math/nlopt/files/patch-src_swig_CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'math/nlopt/files/patch-src_swig_CMakeLists.txt')
-rw-r--r--math/nlopt/files/patch-src_swig_CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/math/nlopt/files/patch-src_swig_CMakeLists.txt b/math/nlopt/files/patch-src_swig_CMakeLists.txt
new file mode 100644
index 000000000000..904492141700
--- /dev/null
+++ b/math/nlopt/files/patch-src_swig_CMakeLists.txt
@@ -0,0 +1,15 @@
+--- src/swig/CMakeLists.txt.orig 2025-02-04 18:29:30 UTC
++++ src/swig/CMakeLists.txt
+@@ -58,10 +58,10 @@ if (GUILE_FOUND)
+
+ set (CMAKE_SWIG_FLAGS)
+
+- target_include_directories (nlopt_guile PRIVATE ${GUILE_INCLUDE_DIRS})
++ target_compile_options(nlopt_guile PRIVATE ${GUILE_CFLAGS})
+
+ target_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})