Skip to content

Commit

Permalink
Blosc: Hint unix-like prefix on Windows
Browse files Browse the repository at this point in the history
Simplest way to add a search for this alternate name
(instead of changing CMAKE_FIND_LIBRARY_PREFIXES).
  • Loading branch information
ax3l committed Dec 20, 2020
1 parent 47c75e7 commit 7294b44
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/FindBlosc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,14 @@ if(NOT BLOSC_FOUND)
NO_DEFAULT_PATHS
)
endif()
if(WIN32) # uses a Unix-like library prefix on Windows
set(BLOSC_LIBRARY_OPTS
libblosc ${BLOSC_LIBRARY_OPTS}
)
endif()

find_path(BLOSC_INCLUDE_DIR blosc.h ${BLOSC_INCLUDE_OPTS})
find_library(BLOSC_LIBRARY blosc ${BLOSC_LIBRARY_OPTS})
find_library(BLOSC_LIBRARY NAMES blosc ${BLOSC_LIBRARY_OPTS})
if(BLOSC_INCLUDE_DIR)
file(STRINGS ${BLOSC_INCLUDE_DIR}/blosc.h _ver_string
REGEX [=[BLOSC_VERSION_STRING +"[^"]*"]=]
Expand Down

0 comments on commit 7294b44

Please sign in to comment.