diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ea7e4e0853..2de4b99be84 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -378,6 +378,8 @@ if(ENABLE_DEEPKS) GIT_PROGRESS TRUE ) FetchContent_MakeAvailable(libnpy) + else() + include_directories(${libnpy_INCLUDE_DIR}) endif() include_directories(${libnpy_SOURCE_DIR}/include) add_compile_definitions(__DEEPKS)