File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -191,10 +191,12 @@ list(APPEND _BLOSC_LIBRARYDIR_SEARCH_DIRS
191191# Library suffix handling
192192
193193set (_BLOSC_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES} )
194+ set (_BLOSC_ORIG_CMAKE_FIND_LIBRARY_PREFIXES ${CMAKE_FIND_LIBRARY_PREFIXES} )
194195
195196if (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 ()
199201else ()
200202 if (BLOSC_USE_STATIC_LIBS)
@@ -247,7 +249,9 @@ endforeach()
247249# Reset library suffix
248250
249251set (CMAKE_FIND_LIBRARY_SUFFIXES ${_BLOSC_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES} )
252+ set (CMAKE_FIND_LIBRARY_PREFIXES ${_BLOSC_ORIG_CMAKE_FIND_LIBRARY_PREFIXES} )
250253unset (_BLOSC_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES)
254+ unset (_BLOSC_ORIG_CMAKE_FIND_LIBRARY_PREFIXES)
251255
252256if (Blosc_LIBRARY_DEBUG AND Blosc_LIBRARY_RELEASE)
253257 # if the generator is multi-config or if CMAKE_BUILD_TYPE is set for
You can’t perform that action at this time.
0 commit comments