vcpkg/ports/etcd-cpp-apiv3/0002-use-target-link-libraries.patch
Carlos O'Ryan 341d02562a
[abseil] update to latest release (20230125.0) (#29692)
* [abseil] update to latest release (20230125.0)

* Fix DLL support

* Update version

* I do not understand the warning about version-string, fixing it seems to make things worse

* [etcd-cpp-apiv3] Abseil requires C++14

* Update a downstream port

* I just cannot get these right, argh

* Try to switch from version-string to version (again)

* Regenerate versions

* Improve etcd handling of C++ standard

* Regenerate versions

* Use target_link_libraries to get compilation flags

* Update version files
2023-02-21 08:28:07 -08:00

18 lines
765 B
Diff

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>)