vcpkg/ports/openvdb/fix_nanovdb.patch

23 lines
783 B
Diff
Raw Normal View History

2023-10-04 13:46:59 +08:00
diff --git a/nanovdb/nanovdb/CMakeLists.txt b/nanovdb/nanovdb/CMakeLists.txt
index 7bb3ab86..9311ed17 100644
2023-10-04 13:46:59 +08:00
--- a/nanovdb/nanovdb/CMakeLists.txt
+++ b/nanovdb/nanovdb/CMakeLists.txt
@@ -127,7 +127,7 @@ if(NANOVDB_USE_TBB AND NOT TARGET TBB::tbb)
2023-10-04 13:46:59 +08:00
endif()
if(NANOVDB_USE_BLOSC AND NOT TARGET Blosc::blosc)
- find_package(Blosc REQUIRED)
+ find_package(Blosc REQUIRED NAMES blosc)
endif()
if(NANOVDB_USE_ZLIB AND NOT TARGET ZLIB::ZLIB)
@@ -236,7 +236,7 @@ if(NANOVDB_USE_TBB)
2023-10-04 13:46:59 +08:00
endif()
if(NANOVDB_USE_BLOSC)
- target_link_libraries(nanovdb INTERFACE Blosc::blosc)
+ target_link_libraries(nanovdb INTERFACE $<IF:$<TARGET_EXISTS:blosc_shared>,blosc_shared,blosc_static>)
target_compile_definitions(nanovdb INTERFACE -DNANOVDB_USE_BLOSC)
endif()