vcpkg/ports/etcd-cpp-apiv3/0002-use-target-link-libraries.patch

18 lines
765 B
Diff
Raw Normal View History

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 8d5404f..e77e92a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -21,6 +21,12 @@ add_library(etcd-cpp-api-core-objects OBJECT ${CPP_CLIENT_CORE_SRC} ${PROTOBUF_G
use_cxx(etcd-cpp-api-core-objects)
add_dependencies(etcd-cpp-api-core-objects protobuf_generates)
include_generated_protobuf_files(etcd-cpp-api-core-objects)
+target_link_libraries(etcd-cpp-api-core-objects PUBLIC
+ ${Boost_LIBRARIES}
+ ${PROTOBUF_LIBRARIES}
+ ${OPENSSL_LIBRARIES}
+ ${GRPC_LIBRARIES}
+)
# add the core library, includes the sycnhronous client only
add_library(etcd-cpp-api-core $<TARGET_OBJECTS:etcd-cpp-api-core-objects>)