mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 15:49:07 +08:00
54 lines
1.7 KiB
Diff
54 lines
1.7 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index ff370fb..6916fcd 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -810,24 +810,30 @@ if(NOT WIN32 OR ROCKSDB_INSTALL_ON_WINDOWS)
|
|
)
|
|
|
|
install(DIRECTORY include/rocksdb COMPONENT devel DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
|
-
|
|
- install(
|
|
- TARGETS ${ROCKSDB_STATIC_LIB}
|
|
- EXPORT RocksDBTargets
|
|
- COMPONENT devel
|
|
- ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
- INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
|
- )
|
|
-
|
|
- install(
|
|
- TARGETS ${ROCKSDB_SHARED_LIB}
|
|
- EXPORT RocksDBTargets
|
|
- COMPONENT runtime
|
|
- ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
- LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
- INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
|
- )
|
|
+ if(NOT ROCKSDB_DISABLE_INSTALL_STATIC_LIB)
|
|
+ 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(NOT ROCKSDB_DISABLE_INSTALL_SHARED_LIB)
|
|
+ install(
|
|
+ TARGETS ${ROCKSDB_SHARED_LIB}
|
|
+ EXPORT RocksDBTargets
|
|
+ COMPONENT runtime
|
|
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
+ INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
|
+ )
|
|
+ else()
|
|
+ set_target_properties(${ROCKSDB_SHARED_LIB} PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
|
+ endif()
|
|
|
|
install(
|
|
EXPORT RocksDBTargets
|