mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 00:29:00 +08:00
08fd0c4065
* openvdb versio update to 11.0 wip update * udpate patches * revert eof * update git tree
23 lines
783 B
Diff
23 lines
783 B
Diff
diff --git a/nanovdb/nanovdb/CMakeLists.txt b/nanovdb/nanovdb/CMakeLists.txt
|
|
index 7bb3ab86..9311ed17 100644
|
|
--- a/nanovdb/nanovdb/CMakeLists.txt
|
|
+++ b/nanovdb/nanovdb/CMakeLists.txt
|
|
@@ -127,7 +127,7 @@ if(NANOVDB_USE_TBB AND NOT TARGET TBB::tbb)
|
|
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)
|
|
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()
|
|
|