chiark / gitweb /
Seems that 'target_include_directories' is not enough for SWIG.
authorJérémie Dumas <jeremie.dumas@ens-lyon.org>
Mon, 20 Mar 2017 23:15:27 +0000 (19:15 -0400)
committerJérémie Dumas <jeremie.dumas@ens-lyon.org>
Tue, 21 Mar 2017 14:35:06 +0000 (10:35 -0400)
swig/CMakeLists.txt

index af7e2d2e62c00c4733d1455939c780654eade4e7..71c6f78e350440875b6fcc98255378042e7a2a33 100644 (file)
@@ -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})