From ed31a0ae6898f5b48b7fb36ea96610f45dd08ae9 Mon Sep 17 00:00:00 2001 From: Duy-Nguyen Ta Date: Sun, 28 May 2017 02:55:19 +0800 Subject: [PATCH] add numpy It's not included in eigency include dirs in some systems --- cmake/GtsamCythonWrap.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/GtsamCythonWrap.cmake b/cmake/GtsamCythonWrap.cmake index e0ed1eb89..92f4981a7 100644 --- a/cmake/GtsamCythonWrap.cmake +++ b/cmake/GtsamCythonWrap.cmake @@ -67,6 +67,8 @@ function(wrap_library_cython interface_header generated_files_path extra_imports include_directories(${PYTHON_INCLUDE_DIRS}) find_package(Eigency REQUIRED) include_directories(${EIGENCY_INCLUDE_DIRS}) + find_package(NumPy REQUIRED) + include_directories(${NUMPY_INCLUDE_DIRS}) add_library(${module_name}_cython MODULE ${generated_cpp_file}) set_target_properties(${module_name}_cython PROPERTIES LINK_FLAGS "-undefined dynamic_lookup"