Skip to content

Commit

Permalink
Force cmake to find the shared libraries for LZ4, Blosc and Zstandard.
Browse files Browse the repository at this point in the history
  • Loading branch information
stavrospapadopoulos committed Jan 25, 2017
1 parent 72ee565 commit 42c340b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmake/Modules/FindBLOSC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ endif()
# Find library
if(BLOSC_SEARCH_LIB_PATH)
find_library(
BLOSC_LIBRARIES NAMES libblosc${SHARED_LIB_SUFFIX}
BLOSC_LIBRARIES NAMES blosc
PATHS ${BLOSC_SEARCH_LIB_PATH}$
NO_DEFAULT_PATH
)
else()
find_library(BLOSC_LIBRARIES NAMES libblosc${SHARED_LIB_SUFFIX})
find_library(BLOSC_LIBRARIES NAMES blosc)
endif()

if(BLOSC_INCLUDE_DIR AND BLOSC_LIBRARIES)
Expand Down
4 changes: 2 additions & 2 deletions cmake/Modules/FindLZ4.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ endif()
# Find library
if(LZ4_SEARCH_LIB_PATH)
find_library(
LZ4_LIBRARIES NAMES liblaz4.a liblz4${SHARED_LIB_SUFFIX}
LZ4_LIBRARIES NAMES lz4
PATHS ${LZ4_SEARCH_LIB_PATH}$
NO_DEFAULT_PATH
)
else()
find_library(LZ4_LIBRARIES NAMES liblz4.a liblz4${SHARED_LIB_SUFFIX})
find_library(LZ4_LIBRARIES NAMES lz4)
endif()

if(LZ4_INCLUDE_DIR AND LZ4_LIBRARIES)
Expand Down
4 changes: 2 additions & 2 deletions cmake/Modules/FindZSTD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ endif()
# Find library
if(ZSTD_SEARCH_LIB_PATH)
find_library(
ZSTD_LIBRARIES NAMES libzstd${SHARED_LIB_SUFFIX}
ZSTD_LIBRARIES NAMES zstd
PATHS ${ZSTD_SEARCH_LIB_PATH}$
NO_DEFAULT_PATH
)
else()
find_library(ZSTD_LIBRARIES NAMES libzstd${SHARED_LIB_SUFFIX})
find_library(ZSTD_LIBRARIES NAMES zstd)
endif()

if(ZSTD_INCLUDE_DIR AND ZSTD_LIBRARIES)
Expand Down

0 comments on commit 42c340b

Please sign in to comment.