30 lines
919 B
Diff
Executable File
30 lines
919 B
Diff
Executable File
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(
|