diff --git a/CMakeLists.txt b/CMakeLists.txt index e1bd077..37625da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,9 +55,11 @@ else() message(STATUS "Found pybind11: ${pybind11_INCLUDE_DIRS}/pybind11") endif() -find_package(NumPy REQUIRED) -message(STATUS "Found numpy: ${NUMPY_INCLUDE_DIRS}") - +if(NOT NUMPY_INCLUDE_DIRS) + set(NUMPY_REQUIRED_VERSION 1.14.0) + find_package(NumPy ${NUMPY_REQUIRED_VERSION} REQUIRED) + message(STATUS "Found numpy: ${NUMPY_INCLUDE_DIRS}") +endif() # Build # =====