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

30 lines
917 B
Diff
Raw Normal View History

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