forked from facebook/rocksdb
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "cmake: cmake related cleanups (facebook#5662)"
This reverts commit cc9fa7f.
- Loading branch information
Showing
9 changed files
with
112 additions
and
132 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 |
---|---|---|
@@ -1,29 +1,21 @@ | ||
# - Find JeMalloc library | ||
# Find the native JeMalloc includes and library | ||
# | ||
# JeMalloc_INCLUDE_DIRS - where to find jemalloc.h, etc. | ||
# JeMalloc_LIBRARIES - List of libraries when using jemalloc. | ||
# JeMalloc_FOUND - True if jemalloc found. | ||
# JEMALLOC_INCLUDE_DIR - where to find jemalloc.h, etc. | ||
# JEMALLOC_LIBRARIES - List of libraries when using jemalloc. | ||
# JEMALLOC_FOUND - True if jemalloc found. | ||
|
||
find_path(JeMalloc_INCLUDE_DIRS | ||
find_path(JEMALLOC_INCLUDE_DIR | ||
NAMES jemalloc/jemalloc.h | ||
HINTS ${JEMALLOC_ROOT_DIR}/include) | ||
|
||
find_library(JeMalloc_LIBRARIES | ||
find_library(JEMALLOC_LIBRARIES | ||
NAMES jemalloc | ||
HINTS ${JEMALLOC_ROOT_DIR}/lib) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(JeMalloc DEFAULT_MSG JeMalloc_LIBRARIES JeMalloc_INCLUDE_DIRS) | ||
find_package_handle_standard_args(jemalloc DEFAULT_MSG JEMALLOC_LIBRARIES JEMALLOC_INCLUDE_DIR) | ||
|
||
mark_as_advanced( | ||
JeMalloc_LIBRARIES | ||
JeMalloc_INCLUDE_DIRS) | ||
|
||
if(JeMalloc_FOUND AND NOT (TARGET JeMalloc::JeMalloc)) | ||
add_library (JeMalloc::JeMalloc UNKNOWN IMPORTED) | ||
set_target_properties(JeMalloc::JeMalloc | ||
PROPERTIES | ||
IMPORTED_LOCATION ${JeMalloc_LIBRARIES} | ||
INTERFACE_INCLUDE_DIRECTORIES ${JeMalloc_INCLUDE_DIRS}) | ||
endif() | ||
JEMALLOC_LIBRARIES | ||
JEMALLOC_INCLUDE_DIR) |
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 |
---|---|---|
@@ -1,33 +1,25 @@ | ||
# - Find TBB | ||
# Find the Thread Building Blocks library and includes | ||
# | ||
# TBB_INCLUDE_DIRS - where to find tbb.h, etc. | ||
# TBB_INCLUDE_DIR - where to find tbb.h, etc. | ||
# TBB_LIBRARIES - List of libraries when using TBB. | ||
# TBB_FOUND - True if TBB found. | ||
|
||
if(NOT DEFINED TBB_ROOT_DIR) | ||
set(TBB_ROOT_DIR "$ENV{TBBROOT}") | ||
endif() | ||
|
||
find_path(TBB_INCLUDE_DIRS | ||
NAMES tbb/tbb.h | ||
HINTS ${TBB_ROOT_DIR}/include) | ||
find_path(TBB_INCLUDE_DIR | ||
NAMES tbb/tbb.h | ||
HINTS ${TBB_ROOT_DIR}/include) | ||
|
||
find_library(TBB_LIBRARIES | ||
NAMES tbb | ||
HINTS ${TBB_ROOT_DIR}/lib ENV LIBRARY_PATH) | ||
NAMES tbb | ||
HINTS ${TBB_ROOT_DIR}/lib ENV LIBRARY_PATH) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(TBB DEFAULT_MSG TBB_LIBRARIES TBB_INCLUDE_DIRS) | ||
find_package_handle_standard_args(TBB DEFAULT_MSG TBB_LIBRARIES TBB_INCLUDE_DIR) | ||
|
||
mark_as_advanced( | ||
TBB_LIBRARIES | ||
TBB_INCLUDE_DIRS) | ||
|
||
if(TBB_FOUND AND NOT (TARGET TBB::TBB)) | ||
add_library (TBB::TBB UNKNOWN IMPORTED) | ||
set_target_properties(TBB::TBB | ||
PROPERTIES | ||
IMPORTED_LOCATION ${TBB_LIBRARIES} | ||
INTERFACE_INCLUDE_DIRECTORIES ${TBB_INCLUDE_DIRS}) | ||
endif() | ||
TBB_LIBRARIES | ||
TBB_INCLUDE_DIR) |
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,21 @@ | ||
# - Find Bzip2 | ||
# Find the bzip2 compression library and includes | ||
# | ||
# BZIP2_INCLUDE_DIR - where to find bzlib.h, etc. | ||
# BZIP2_LIBRARIES - List of libraries when using bzip2. | ||
# BZIP2_FOUND - True if bzip2 found. | ||
|
||
find_path(BZIP2_INCLUDE_DIR | ||
NAMES bzlib.h | ||
HINTS ${BZIP2_ROOT_DIR}/include) | ||
|
||
find_library(BZIP2_LIBRARIES | ||
NAMES bz2 | ||
HINTS ${BZIP2_ROOT_DIR}/lib) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(bzip2 DEFAULT_MSG BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) | ||
|
||
mark_as_advanced( | ||
BZIP2_LIBRARIES | ||
BZIP2_INCLUDE_DIR) |
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 |
---|---|---|
@@ -1,29 +1,21 @@ | ||
# - Find Lz4 | ||
# Find the lz4 compression library and includes | ||
# | ||
# lz4_INCLUDE_DIRS - where to find lz4.h, etc. | ||
# lz4_LIBRARIES - List of libraries when using lz4. | ||
# lz4_FOUND - True if lz4 found. | ||
# LZ4_INCLUDE_DIR - where to find lz4.h, etc. | ||
# LZ4_LIBRARIES - List of libraries when using lz4. | ||
# LZ4_FOUND - True if lz4 found. | ||
|
||
find_path(lz4_INCLUDE_DIRS | ||
find_path(LZ4_INCLUDE_DIR | ||
NAMES lz4.h | ||
HINTS ${lz4_ROOT_DIR}/include) | ||
HINTS ${LZ4_ROOT_DIR}/include) | ||
|
||
find_library(lz4_LIBRARIES | ||
find_library(LZ4_LIBRARIES | ||
NAMES lz4 | ||
HINTS ${lz4_ROOT_DIR}/lib) | ||
HINTS ${LZ4_ROOT_DIR}/lib) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(lz4 DEFAULT_MSG lz4_LIBRARIES lz4_INCLUDE_DIRS) | ||
find_package_handle_standard_args(lz4 DEFAULT_MSG LZ4_LIBRARIES LZ4_INCLUDE_DIR) | ||
|
||
mark_as_advanced( | ||
lz4_LIBRARIES | ||
lz4_INCLUDE_DIRS) | ||
|
||
if(lz4_FOUND AND NOT (TARGET lz4::lz4)) | ||
add_library(lz4::lz4 UNKNOWN IMPORTED) | ||
set_target_properties(lz4::lz4 | ||
PROPERTIES | ||
IMPORTED_LOCATION ${lz4_LIBRARIES} | ||
INTERFACE_INCLUDE_DIRECTORIES ${lz4_INCLUDE_DIRS}) | ||
endif() | ||
LZ4_LIBRARIES | ||
LZ4_INCLUDE_DIR) |
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 |
---|---|---|
@@ -1,29 +1,21 @@ | ||
# - Find Snappy | ||
# Find the snappy compression library and includes | ||
# | ||
# snappy_INCLUDE_DIRS - where to find snappy.h, etc. | ||
# snappy_LIBRARIES - List of libraries when using snappy. | ||
# snappy_FOUND - True if snappy found. | ||
# SNAPPY_INCLUDE_DIR - where to find snappy.h, etc. | ||
# SNAPPY_LIBRARIES - List of libraries when using snappy. | ||
# SNAPPY_FOUND - True if snappy found. | ||
|
||
find_path(snappy_INCLUDE_DIRS | ||
find_path(SNAPPY_INCLUDE_DIR | ||
NAMES snappy.h | ||
HINTS ${snappy_ROOT_DIR}/include) | ||
HINTS ${SNAPPY_ROOT_DIR}/include) | ||
|
||
find_library(snappy_LIBRARIES | ||
NAMES snappy | ||
HINTS ${snappy_ROOT_DIR}/lib) | ||
HINTS ${SNAPPY_ROOT_DIR}/lib) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(snappy DEFAULT_MSG snappy_LIBRARIES snappy_INCLUDE_DIRS) | ||
find_package_handle_standard_args(snappy DEFAULT_MSG SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR) | ||
|
||
mark_as_advanced( | ||
snappy_LIBRARIES | ||
snappy_INCLUDE_DIRS) | ||
|
||
if(snappy_FOUND AND NOT (TARGET snappy::snappy)) | ||
add_library (snappy::snappy UNKNOWN IMPORTED) | ||
set_target_properties(snappy::snappy | ||
PROPERTIES | ||
IMPORTED_LOCATION ${snappy_LIBRARIES} | ||
INTERFACE_INCLUDE_DIRECTORIES ${snappy_INCLUDE_DIRS}) | ||
endif() | ||
SNAPPY_LIBRARIES | ||
SNAPPY_INCLUDE_DIR) |
Oops, something went wrong.