From 6b4afa21d668454a8c63b55202b49deeb7dda1d0 Mon Sep 17 00:00:00 2001 From: Borong Yuan Date: Fri, 28 Jun 2024 20:33:02 +0800 Subject: [PATCH] fix build with openvdb_vendor --- 3rdparty/find_dependencies.cmake | 1 + CMakeLists.txt | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/find_dependencies.cmake b/3rdparty/find_dependencies.cmake index b882a03..0a9d8b5 100644 --- a/3rdparty/find_dependencies.cmake +++ b/3rdparty/find_dependencies.cmake @@ -55,6 +55,7 @@ if(USE_SYSTEM_OPENVDB) list(APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_FULL_LIBDIR}/cmake/OpenVDB") find_package(openvdb_vendor QUIET) if(NOT OpenVDB_FOUND) + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/") find_package(OpenVDB QUIET) endif() if(OpenVDB_FOUND AND OpenVDB_USES_BLOSC) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e4316a..5f68b8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,6 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/") # Find Dependencies from the 3rdparty directory. include(3rdparty/find_dependencies.cmake)