vcpkg/ports/rocksdb/0002-only-build-one-flavor.patch

30 lines
913 B
Diff
Raw Normal View History

2020-03-11 02:21:14 +02:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6761929..4d2b0a1 100644
2020-03-11 02:21:14 +02:00
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -987,13 +987,17 @@ if(NOT WIN32 OR ROCKSDB_INSTALL_ON_WINDOWS)
2020-03-11 02:21:14 +02:00
2020-10-13 03:13:33 +03:00
install(DIRECTORY "${PROJECT_SOURCE_DIR}/cmake/modules" COMPONENT devel DESTINATION ${package_config_destination})
2020-03-11 02:21:14 +02:00
- install(
- TARGETS ${ROCKSDB_STATIC_LIB}
- EXPORT RocksDBTargets
- COMPONENT devel
- ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
- INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
- )
2020-10-13 03:13:33 +03:00
+ if(NOT ROCKSDB_BUILD_SHARED)
2020-03-11 02:21:14 +02:00
+ install(
2020-10-13 03:13:33 +03:00
+ TARGETS ${ROCKSDB_STATIC_LIB}
2020-03-11 02:21:14 +02:00
+ EXPORT RocksDBTargets
2020-10-13 03:13:33 +03:00
+ COMPONENT devel
2020-03-11 02:21:14 +02:00
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
+ INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
+ )
+ else()
2020-10-13 03:13:33 +03:00
+ set_target_properties(${ROCKSDB_STATIC_LIB} PROPERTIES EXCLUDE_FROM_ALL TRUE)
2020-03-11 02:21:14 +02:00
+ endif()
2020-10-13 03:13:33 +03:00
if(ROCKSDB_BUILD_SHARED)
install(