Skip to content

Commit 8ea30d5

Browse files
authored
Merge pull request #1897 from danrbailey/windows_static
Fix Windows Static Build
2 parents 383aa15 + 26c45dd commit 8ea30d5

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

cmake/FindBlosc.cmake

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -188,22 +188,6 @@ list(APPEND _BLOSC_LIBRARYDIR_SEARCH_DIRS
188188
${SYSTEM_LIBRARY_PATHS}
189189
)
190190

191-
# Library suffix handling
192-
193-
set(_BLOSC_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
194-
set(_BLOSC_ORIG_CMAKE_FIND_LIBRARY_PREFIXES ${CMAKE_FIND_LIBRARY_PREFIXES})
195-
196-
if(MSVC)
197-
if(BLOSC_USE_STATIC_LIBS)
198-
set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib")
199-
set(CMAKE_FIND_LIBRARY_PREFIXES "${CMAKE_FIND_LIBRARY_PREFIXES};lib")
200-
endif()
201-
else()
202-
if(BLOSC_USE_STATIC_LIBS)
203-
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
204-
endif()
205-
endif()
206-
207191
set(Blosc_LIB_COMPONENTS "")
208192
# NOTE: Search for debug version first (see vcpkg hack)
209193
list(APPEND BLOSC_BUILD_TYPES DEBUG RELEASE)
@@ -246,13 +230,6 @@ foreach(BUILD_TYPE ${BLOSC_BUILD_TYPES})
246230
set(CMAKE_IGNORE_PATH ${_BLOSC_CMAKE_IGNORE_PATH})
247231
endforeach()
248232

249-
# Reset library suffix
250-
251-
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_BLOSC_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
252-
set(CMAKE_FIND_LIBRARY_PREFIXES ${_BLOSC_ORIG_CMAKE_FIND_LIBRARY_PREFIXES})
253-
unset(_BLOSC_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES)
254-
unset(_BLOSC_ORIG_CMAKE_FIND_LIBRARY_PREFIXES)
255-
256233
if(Blosc_LIBRARY_DEBUG AND Blosc_LIBRARY_RELEASE)
257234
# if the generator is multi-config or if CMAKE_BUILD_TYPE is set for
258235
# single-config generators, set optimized and debug libraries
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Build:
2+
- Fixed an issue with the Blosc CMake FindPackage for the OpenVDB Windows static library.

0 commit comments

Comments
 (0)