Skip to content

Commit a583c32

Browse files
committed
Minor update to FindBlosc.cmake to support renamed lib on windows
Signed-off-by: Nick Avramoussis <4256455+Idclip@users.noreply.github.com>
1 parent 1462043 commit a583c32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/FindBlosc.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,12 @@ list(APPEND _BLOSC_LIBRARYDIR_SEARCH_DIRS
191191
# Library suffix handling
192192

193193
set(_BLOSC_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
194+
set(_BLOSC_ORIG_CMAKE_FIND_LIBRARY_PREFIXES ${CMAKE_FIND_LIBRARY_PREFIXES})
194195

195196
if(MSVC)
196197
if(BLOSC_USE_STATIC_LIBS)
197198
set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib")
199+
set(CMAKE_FIND_LIBRARY_PREFIXES "${CMAKE_FIND_LIBRARY_PREFIXES};lib")
198200
endif()
199201
else()
200202
if(BLOSC_USE_STATIC_LIBS)
@@ -247,7 +249,9 @@ endforeach()
247249
# Reset library suffix
248250

249251
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_BLOSC_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
252+
set(CMAKE_FIND_LIBRARY_PREFIXES ${_BLOSC_ORIG_CMAKE_FIND_LIBRARY_PREFIXES})
250253
unset(_BLOSC_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES)
254+
unset(_BLOSC_ORIG_CMAKE_FIND_LIBRARY_PREFIXES)
251255

252256
if(Blosc_LIBRARY_DEBUG AND Blosc_LIBRARY_RELEASE)
253257
# if the generator is multi-config or if CMAKE_BUILD_TYPE is set for

0 commit comments

Comments
 (0)