-
Notifications
You must be signed in to change notification settings - Fork 1k
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 #781 from Performance Network branch
Accelerator branch
- Loading branch information
Showing
165 changed files
with
7,094 additions
and
1,727 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
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
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,39 @@ | ||
############################################################################### | ||
# Find LZ4 | ||
# | ||
# This sets the following variables: | ||
# LZ4_FOUND - True if LZ4 was found. | ||
# LZ4_INCLUDE_DIRS - Directories containing the LZ4 include files. | ||
# LZ4_LIBRARIES - Libraries needed to use LZ4. | ||
# LZ4_LIBRARY - Library needed to use LZ4. | ||
# LZ4_LIBRARY_DIRS - Library needed to use LZ4. | ||
|
||
find_package(PkgConfig REQUIRED) | ||
|
||
# If found, LZ$_* variables will be defined | ||
pkg_check_modules(LZ4 REQUIRED liblz4) | ||
|
||
if(NOT LZ4_FOUND) | ||
find_path(LZ4_INCLUDE_DIR lz4.h | ||
HINTS "${LZ4_ROOT}" "$ENV{LZ4_ROOT}" | ||
PATHS "$ENV{PROGRAMFILES}/lz4" "$ENV{PROGRAMW6432}/lz4" | ||
PATH_SUFFIXES include) | ||
|
||
find_library(LZ4_LIBRARY | ||
NAMES lz4 lz4_static | ||
HINTS "${LZ4_ROOT}" "$ENV{LZ4_ROOT}" | ||
PATHS "$ENV{PROGRAMFILES}/lz4" "$ENV{PROGRAMW6432}/lz4" | ||
PATH_SUFFIXES lib) | ||
|
||
if(LZ4_LIBRARY) | ||
set(LZ4_LIBRARIES ${LZ4_LIBRARY}) | ||
get_filename_component(LZ4_LIBRARY_DIRS ${LZ4_LIBRARY} DIRECTORY) | ||
endif() | ||
else() | ||
find_library(LZ4_LIBRARY | ||
NAMES lz4 lz4_static | ||
PATHS ${LZ4_LIBRARY_DIRS} | ||
NO_DEFAULT_PATH) | ||
endif() | ||
|
||
mark_as_advanced(LZ4_LIBRARY LZ4_INCLUDE_DIRS LZ4_LIBRARY_DIRS LZ4_LIBRARIES) |
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
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
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
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
Oops, something went wrong.