This is an automated email from the ASF dual-hosted git repository.
pengzheng pushed a commit to branch feature/579-automatic-dependency-deduction
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to
refs/heads/feature/579-automatic-dependency-deduction by this push:
new 12094ffd Remove unnecessary find_package(CURL REQUIRED) when opting
out etcd.
12094ffd is described below
commit 12094ffd908f74e2329e1bd18a137ff1402b6abf
Author: PengZheng <[email protected]>
AuthorDate: Sat Jul 15 13:13:21 2023 +0800
Remove unnecessary find_package(CURL REQUIRED) when opting out etcd.
---
libs/etcdlib/CMakeLists.txt | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libs/etcdlib/CMakeLists.txt b/libs/etcdlib/CMakeLists.txt
index bc351136..51150747 100644
--- a/libs/etcdlib/CMakeLists.txt
+++ b/libs/etcdlib/CMakeLists.txt
@@ -36,7 +36,6 @@ if (NOT COMMAND celix_subproject)
set(CMAKE_EXE_LINKER_FLAGS "-pthread ${CMAKE_EXE_LINKER_FLAGS}")
set(ETCDLIB_CMP ${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME})
- find_package(CURL REQUIRED)
if (NOT TARGET CURL::libcurl)
#Note more recent curl will create CURL::libcurl target
message("Note CURL::libcurl target not created by find_package(CURL).
Creating CURL::libcurl Target.")
@@ -50,10 +49,10 @@ if (NOT COMMAND celix_subproject)
else()
set(ETCDLIB_CMP framework)
celix_subproject(CELIX_ETCDLIB "Option to build the ETCD library" ON)
- find_package(CURL REQUIRED)
endif ()
if (CELIX_ETCDLIB OR ETCDLIB_STANDALONE)
+ find_package(CURL REQUIRED)
find_package(jansson REQUIRED)
add_library(etcdlib SHARED src/etcd.c)