-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7126 from tchaikov/wip-detect-bzip2-lz4
cmake: detect bzip2 and lz4
- Loading branch information
Showing
3 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Try to find liblz4 | ||
# | ||
# Once done, this will define | ||
# | ||
# LZ4_FOUND | ||
# LZ4_INCLUDE_DIR | ||
# LZ4_LIBRARY | ||
|
||
find_path(LZ4_INCLUDE_DIR NAMES lz4.h) | ||
find_library(LZ4_LIBRARY NAMES lz4) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(LZ4 DEFAULT_MSG LZ4_LIBRARY LZ4_INCLUDE_DIR) | ||
|
||
mark_as_advanced(LZ4_INCLUDE_DIR LZ4_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters