forked from conan-io/conan-center-index
-
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.
Merge remote-tracking branch 'ui/rocksdb-646'
- Loading branch information
Showing
6 changed files
with
78 additions
and
77 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,8 +1,8 @@ | ||
sources: | ||
"6.4.6": | ||
sha256: 540BBF9369A31E0891FCB4056A36FFA439C59FC179AA0B1F46E3478417F97643 | ||
url: https://github.com/facebook/rocksdb/archive/v6.4.6.tar.gz | ||
"6.5.2": | ||
sha256: a923e36aa1cdd1429ae93a0b26baf477c714060ce7dd1c52e873754e1468d7ff | ||
url: https://github.com/facebook/rocksdb/archive/v6.5.2.tar.gz | ||
patches: | ||
"6.4.6": | ||
"6.5.2": | ||
- base_path: source_subfolder | ||
patch_file: patches/0001-build-libs.patch | ||
patch_file: patches/0001-install-libs.patch |
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 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,52 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index db9e371..963793b 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -844,6 +844,7 @@ if(NOT WIN32 OR ROCKSDB_INSTALL_ON_WINDOWS) | ||
|
||
install(DIRECTORY include/rocksdb COMPONENT devel DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") | ||
|
||
+ if (NOT BUILD_SHARED_LIBS) | ||
install( | ||
TARGETS ${ROCKSDB_STATIC_LIB} | ||
EXPORT RocksDBTargets | ||
@@ -851,7 +852,7 @@ if(NOT WIN32 OR ROCKSDB_INSTALL_ON_WINDOWS) | ||
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" | ||
INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" | ||
) | ||
- | ||
+ else() | ||
install( | ||
TARGETS ${ROCKSDB_SHARED_LIB} | ||
EXPORT RocksDBTargets | ||
@@ -861,7 +862,9 @@ if(NOT WIN32 OR ROCKSDB_INSTALL_ON_WINDOWS) | ||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" | ||
INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" | ||
) | ||
+ endif() | ||
|
||
+ if (NOT) | ||
install( | ||
EXPORT RocksDBTargets | ||
COMPONENT devel | ||
@@ -876,6 +879,7 @@ if(NOT WIN32 OR ROCKSDB_INSTALL_ON_WINDOWS) | ||
COMPONENT devel | ||
DESTINATION ${package_config_destination} | ||
) | ||
+ endif() | ||
endif() | ||
|
||
option(WITH_TESTS "build with tests" ON) | ||
diff --git a/cmake/modules/ReadVersion.cmake b/cmake/modules/ReadVersion.cmake | ||
index ae356d9..ebfd7d6 100644 | ||
--- a/cmake/modules/ReadVersion.cmake | ||
+++ b/cmake/modules/ReadVersion.cmake | ||
@@ -1,7 +1,7 @@ | ||
# Read rocksdb version from version.h header file. | ||
|
||
function(get_rocksdb_version version_var) | ||
- file(READ "${CMAKE_SOURCE_DIR}/include/rocksdb/version.h" version_header_file) | ||
+ file(READ "${CMAKE_CURRENT_SOURCE_DIR}/include/rocksdb/version.h" version_header_file) | ||
foreach(component MAJOR MINOR PATCH) | ||
string(REGEX MATCH "#define ROCKSDB_${component} ([0-9]+)" _ ${version_header_file}) | ||
set(ROCKSDB_VERSION_${component} ${CMAKE_MATCH_1}) |
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,4 +1,4 @@ | ||
--- | ||
versions: | ||
"6.4.6": | ||
"6.5.2": | ||
folder: all |