Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cmake/modules/FindxxHash.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
# xxHash_VERSION_PATCH - The patch version of xxHash

find_path(xxHash_INCLUDE_DIR NAME xxhash.h PATH_SUFFIXES include)
find_library(xxHash_LIBRARY NAMES xxhash xxHash PATH_SUFFIXES lib)
# Each library name given to the NAMES option is first considered as is, if it contains a library suffix,
# and then considered with platform-specific prefixes (e.g. lib) and suffixes (e.g. .so), as defined by
# the variables CMAKE_FIND_LIBRARY_PREFIXES and CMAKE_FIND_LIBRARY_SUFFIXES. Therefore one may specify
# library file names such as libfoo.a directly. This can be used to locate static libraries on UNIX-like systems.
find_library(xxHash_LIBRARY NAMES libxxhash.${CMAKE_STATIC_LIBRARY_SUFFIX} libxxHash.${CMAKE_STATIC_LIBRARY_SUFFIX} xxhash xxHash PATH_SUFFIXES lib)

mark_as_advanced(xxHash_INCLUDE_DIR)

Expand Down
Loading