mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 04:21:38 +08:00
77d4d314c0
* [rocksdb] update to v6.26.1 * [rocksdb] update to v6.26.1. * update version Co-authored-by: Jonliu1993 <13720414433@163.com>
30 lines
919 B
Diff
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(
|