From 2b94566ef5b245f9e5efe2fb9478372c03c59a64 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Dumas?= Date: Wed, 11 Jan 2017 14:49:32 +0100 Subject: [PATCH] Update CMakeLists.txt --- swig/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt index faba14c..af7e2d2 100644 --- a/swig/CMakeLists.txt +++ b/swig/CMakeLists.txt @@ -28,10 +28,10 @@ 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}) + target_include_directories (${SWIG_MODULE_nlopt_REAL_NAME} PRIVATE ${NLOPT_PRIVATE_INCLUDE_DIRS}) endif () install (FILES ${CMAKE_CURRENT_BINARY_DIR}/nlopt.py DESTINATION ${INSTALL_PYTHON_DIR}) -- 2.30.2