diff --git a/CMakeLists.txt b/CMakeLists.txt index 8329dda947..127e50a36e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -573,3 +573,5 @@ if(OPENVDB_ENABLE_UNINSTALL) COMMAND ${CMAKE_COMMAND} -P ${PROJECT_SOURCE_DIR}/cmake/Uninstall.cmake ) endif() + +find_package(Threads REQUIRED) diff --git a/cmake/FindBlosc.cmake b/cmake/FindBlosc.cmake index a9c77ae5e7..79b6ba83bc 100644 --- a/cmake/FindBlosc.cmake +++ b/cmake/FindBlosc.cmake @@ -209,7 +209,11 @@ set(Blosc_LIB_COMPONENTS "") list(APPEND BLOSC_BUILD_TYPES DEBUG RELEASE) foreach(BUILD_TYPE ${BLOSC_BUILD_TYPES}) - set(_BLOSC_LIB_NAME blosc) + if(WIN32) + set(_BLOSC_LIB_NAME libblosc) + else() + set(_BLOSC_LIB_NAME blosc) + endif() set(_BLOSC_CMAKE_IGNORE_PATH ${CMAKE_IGNORE_PATH}) if(VCPKG_TOOLCHAIN)