forked from ClickHouse/clickhouse-cpp
-
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.
Add options to use system abseil, and lz4
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
- Loading branch information
1 parent
df4ae9f
commit 63b9356
Showing
40 changed files
with
199 additions
and
68 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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
#include "../exceptions.h" | ||
|
||
#include <cityhash/city.h> | ||
#include <city.h> | ||
|
||
#include <stdexcept> | ||
|
||
|
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,38 @@ | ||
find_path(lz4_INCLUDE_DIR | ||
NAMES lz4.h | ||
DOC "lz4 include directory") | ||
mark_as_advanced(lz4_INCLUDE_DIR) | ||
find_library(lz4_LIBRARY | ||
NAMES lz4 liblz4 | ||
DOC "lz4 library") | ||
mark_as_advanced(lz4_LIBRARY) | ||
|
||
if (lz4_INCLUDE_DIR) | ||
file(STRINGS "${lz4_INCLUDE_DIR}/lz4.h" _lz4_version_lines | ||
REGEX "#define[ \t]+LZ4_VERSION_(MAJOR|MINOR|RELEASE)") | ||
string(REGEX REPLACE ".*LZ4_VERSION_MAJOR *\([0-9]*\).*" "\\1" _lz4_version_major "${_lz4_version_lines}") | ||
string(REGEX REPLACE ".*LZ4_VERSION_MINOR *\([0-9]*\).*" "\\1" _lz4_version_minor "${_lz4_version_lines}") | ||
string(REGEX REPLACE ".*LZ4_VERSION_RELEASE *\([0-9]*\).*" "\\1" _lz4_version_release "${_lz4_version_lines}") | ||
set(lz4_VERSION "${_lz4_version_major}.${_lz4_version_minor}.${_lz4_version_release}") | ||
unset(_lz4_version_major) | ||
unset(_lz4_version_minor) | ||
unset(_lz4_version_release) | ||
unset(_lz4_version_lines) | ||
endif () | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(lz4 | ||
REQUIRED_VARS lz4_LIBRARY lz4_INCLUDE_DIR | ||
VERSION_VAR lz4_VERSION) | ||
|
||
if (lz4_FOUND) | ||
set(lz4_INCLUDE_DIRS "${lz4_INCLUDE_DIR}") | ||
set(lz4_LIBRARIES "${lz4_LIBRARY}") | ||
|
||
if (NOT TARGET lz4::lz4) | ||
add_library(lz4::lz4 UNKNOWN IMPORTED) | ||
set_target_properties(lz4::lz4 PROPERTIES | ||
IMPORTED_LOCATION "${lz4_LIBRARY}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${lz4_INCLUDE_DIR}") | ||
endif () | ||
endif () |
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
ADD_LIBRARY (absl_int128 STATIC | ||
numeric/int128.cc | ||
) | ||
|
||
TARGET_INCLUDE_DIRECTORIES (absl_int128 | ||
PUBLIC ${PROJECT_SOURCE_DIR}/contrib/absl | ||
) | ||
|
||
ADD_LIBRARY (absl::int128 ALIAS absl_int128) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,7 @@ | ||
ADD_LIBRARY (cityhash STATIC | ||
city.cc | ||
) | ||
|
||
set_property(TARGET cityhash PROPERTY POSITION_INDEPENDENT_CODE ON) | ||
|
||
ADD_LIBRARY (cityhash::cityhash ALIAS cityhash) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,8 @@ | ||
ADD_LIBRARY (lz4 STATIC | ||
lz4.c | ||
lz4hc.c | ||
) | ||
|
||
set_property(TARGET lz4 PROPERTY POSITION_INDEPENDENT_CODE ON) | ||
|
||
ADD_LIBRARY(lz4::lz4 ALIAS lz4) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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