From 6f97c17891f1e3139b68c2efc6ca376eafb11fed Mon Sep 17 00:00:00 2001 From: maki49 <1579492865@qq.com> Date: Thu, 6 Jul 2023 22:44:19 +0800 Subject: [PATCH] fix deepks compile error with provided libnpy path --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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)