forked from facebook/folly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Add a CMake find_package script for LZ4 simpkins Closes facebook#778 Reviewed By: simpkins Differential Revision: D7064988 Pulled By: yfeldblum fbshipit-source-id: 60596ead4b4fd38474dab4c33d4c3fbb0f37549c
- Loading branch information
1 parent
8aa1a41
commit 7dc5a4e
Showing
2 changed files
with
29 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Finds liblz4. | ||
# | ||
# This module defines: | ||
# 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 | ||
) | ||
|
||
if (LZ4_FOUND) | ||
message(STATUS "Found LZ4: ${LZ4_LIBRARY}") | ||
endif() | ||
|
||
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