From 8df1a0952a60ffa7fa449272102c1e1e1b4035e6 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Fri, 20 Sep 2024 11:08:12 +0200 Subject: [PATCH] Some desperate CMake fixes --- CMakeLists.txt | 2 ++ cmake/FindBlosc.cmake | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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)