vcpkg/ports/rocksdb/0002-only-build-one-flavor.patch
Koby Kahane 77d4d314c0
[rocksdb] update to v6.26.1 (#21661)
* [rocksdb] update to v6.26.1

* [rocksdb] update to v6.26.1.

* update version

Co-authored-by: Jonliu1993 <13720414433@163.com>
2021-11-26 01:18:37 -08:00

30 lines
919 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1a6411653..526dfcf60 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1077,13 +1077,17 @@ if(NOT WIN32 OR ROCKSDB_INSTALL_ON_WINDOWS)
install(DIRECTORY "${PROJECT_SOURCE_DIR}/cmake/modules" COMPONENT devel DESTINATION ${package_config_destination})
- install(
- TARGETS ${ROCKSDB_STATIC_LIB}
- EXPORT RocksDBTargets
- COMPONENT devel
- ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
- INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
- )
+ if(NOT ROCKSDB_BUILD_SHARED)
+ install(
+ TARGETS ${ROCKSDB_STATIC_LIB}
+ EXPORT RocksDBTargets
+ COMPONENT devel
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
+ INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
+ )
+ else()
+ set_target_properties(${ROCKSDB_STATIC_LIB} PROPERTIES EXCLUDE_FROM_ALL TRUE)
+ endif()
if(ROCKSDB_BUILD_SHARED)
install(