Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve support for system or ROS pre-installed OpenVDB #43

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion 3rdparty/find_dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ if(USE_SYSTEM_OPENVDB)
# When OpenVDB is available on the system, we just go for the dynamic version of it
include(GNUInstallDirs)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_FULL_LIBDIR}/cmake/OpenVDB")
find_package(OpenVDB QUIET)
find_package(openvdb_vendor QUIET)
if(NOT OpenVDB_FOUND)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/")
find_package(OpenVDB QUIET)
endif()
if(OpenVDB_FOUND AND OpenVDB_USES_BLOSC)
# We need to get these hidden dependencies (if available) to static link them inside our library
target_link_libraries(OpenVDB::openvdb INTERFACE Blosc::blosc)
Expand Down
Loading