chiark
/
gitweb
/
~ianmdlvl
/
nlopt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9f08bc
)
Seems that 'target_include_directories' is not enough for SWIG.
author
Jérémie Dumas
<jeremie.dumas@ens-lyon.org>
Mon, 20 Mar 2017 23:15:27 +0000
(19:15 -0400)
committer
Jérémie Dumas
<jeremie.dumas@ens-lyon.org>
Tue, 21 Mar 2017 14:35:06 +0000
(10:35 -0400)
swig/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/swig/CMakeLists.txt
b/swig/CMakeLists.txt
index af7e2d2e62c00c4733d1455939c780654eade4e7..71c6f78e350440875b6fcc98255378042e7a2a33 100644
(file)
--- a/
swig/CMakeLists.txt
+++ b/
swig/CMakeLists.txt
@@
-28,6
+28,7
@@
if (NUMPY_FOUND AND PYTHONLIBS_FOUND AND (SWIG_FOUND OR (EXISTS ${CMAKE_CURRENT_
set_source_files_properties (nlopt.i PROPERTIES CPLUSPLUS ON)
set (SWIG_MODULE_nlopt_EXTRA_DEPS nlopt-python.i numpy.i)
+ include_directories (${NLOPT_PRIVATE_INCLUDE_DIRS})
swig_add_module (nlopt python nlopt.i)
swig_link_libraries (nlopt ${nlopt_lib})
swig_link_libraries (nlopt ${PYTHON_LIBRARIES})