Skip to content

Commit

Permalink
Use pkg-config to find ZSTD
Browse files Browse the repository at this point in the history
  • Loading branch information
panovotn authored and nmoinvaz committed Oct 25, 2020
1 parent 699bf6e commit 3a66e42
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,13 @@ endif()
# Check if zstd installation is present
if(MZ_ZSTD)
if(NOT ZSTD_FORCE_FETCH)
find_package(ZSTD QUIET)
find_package(PkgConfig)
if(PKGCONFIG_FOUND)
pkg_check_modules(ZSTD libzstd)
endif()
if(NOT ZSTD_FOUND)
find_package(ZSTD QUIET)
endif()
endif()
if(ZSTD_FOUND AND NOT ZSTD_FORCE_FETCH)
message(STATUS "Using ZSTD")
Expand Down

0 comments on commit 3a66e42

Please sign in to comment.