-
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.
enable to use rocksdb for pwal sorting
- Loading branch information
1 parent
c41c538
commit 8348b84
Showing
4 changed files
with
41 additions
and
2 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,24 @@ | ||
if(TARGET rocksdb::rocksdb) | ||
return() | ||
endif() | ||
|
||
find_library(rocksdb_LIBRARY_FILE NAMES rocksdb) | ||
find_path(rocksdb_INCLUDE_DIR NAMES rocksdb/db.h) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(rocksdb DEFAULT_MSG | ||
rocksdb_LIBRARY_FILE | ||
rocksdb_INCLUDE_DIR) | ||
|
||
if(rocksdb_LIBRARY_FILE AND rocksdb_INCLUDE_DIR) | ||
set(rocksdb_FOUND ON) | ||
add_library(RocksDB::rocksdb SHARED IMPORTED) | ||
set_target_properties(RocksDB::rocksdb PROPERTIES | ||
IMPORTED_LOCATION "${rocksdb_LIBRARY_FILE}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${rocksdb_INCLUDE_DIR}") | ||
else() | ||
set(rocksdb_FOUND OFF) | ||
endif() | ||
|
||
unset(rocksdb_LIBRARY_FILE CACHE) | ||
unset(rocksdb_INCLUDE_DIR CACHE) |
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