mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 13:48:10 +08:00
49 lines
1.4 KiB
Diff
49 lines
1.4 KiB
Diff
From f77366e2bf8c136990b89ab235af8e0cf0e566f4 Mon Sep 17 00:00:00 2001
|
|
From: Robert Schumacher <roschuma@microsoft.com>
|
|
Date: Fri, 23 Feb 2018 01:45:18 -0800
|
|
Subject: [PATCH 3/3] only build one flavor
|
|
|
|
---
|
|
CMakeLists.txt | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index faffc91..89dc537 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -723,6 +723,7 @@ if(NOT WIN32 OR ROCKSDB_INSTALL_ON_WINDOWS)
|
|
|
|
install(DIRECTORY include/rocksdb COMPONENT devel DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
|
|
|
+ if(NOT ROCKSDB_DISABLE_INSTALL_STATIC_LIB)
|
|
install(
|
|
TARGETS ${ROCKSDB_STATIC_LIB}
|
|
EXPORT RocksDBTargets
|
|
@@ -730,15 +731,23 @@ if(NOT WIN32 OR ROCKSDB_INSTALL_ON_WINDOWS)
|
|
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
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
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
|
|
--
|
|
2.16.2.windows.1
|
|
|