diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 9ea873259..4d3d0237d 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -31,7 +31,7 @@ endif() # Find NumPy C-API -- this is part of the numpy package find_package(NumPy) -if(NumPy_FOUND) +if(NUMPY_FOUND) include_directories(${NUMPY_INCLUDE_DIRS}) endif() @@ -51,7 +51,7 @@ endif() find_package(Boost COMPONENTS python${BOOST_PYTHON_VERSION_SUFFIX}) # Build python module library and setup the module inside build -if(Boost_PYTHON${BOOST_PYTHON_VERSION_SUFFIX_UPPERCASE}_FOUND AND PYTHONLIBS_FOUND AND NumPy_FOUND) +if(Boost_PYTHON${BOOST_PYTHON_VERSION_SUFFIX_UPPERCASE}_FOUND AND PYTHONLIBS_FOUND AND NUMPY_FOUND) include_directories(${PYTHON_INCLUDE_DIRS}) include_directories(${Boost_INCLUDE_DIRS}) include_directories(${CMAKE_SOURCE_DIR}/gtsam/3rdparty/numpy_eigen/include/) @@ -80,7 +80,7 @@ else() endif() # Print warnings (useful for ccmake) -if(NOT NumPy_FOUND) +if(NOT NUMPY_FOUND) message(WARNING "Numpy not found -- Python module cannot be built.") endif()