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 ebac4777 Update standalone etcd to use cmake 3.18.
ebac4777 is described below

commit ebac47777577f43abbe807a7c756779dbc1a1219
Author: PengZheng <[email protected]>
AuthorDate: Sat Jul 15 14:15:39 2023 +0800

    Update standalone etcd to use cmake 3.18.
---
 libs/etcdlib/CMakeLists.txt | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/libs/etcdlib/CMakeLists.txt b/libs/etcdlib/CMakeLists.txt
index 072f2753..16a30a6e 100644
--- a/libs/etcdlib/CMakeLists.txt
+++ b/libs/etcdlib/CMakeLists.txt
@@ -21,7 +21,7 @@ if (NOT COMMAND celix_subproject)
     #act as a top level project. Making the etcdlib useable 
     #stand-alone
 
-    cmake_minimum_required (VERSION 3.2)
+    cmake_minimum_required (VERSION 3.18)
     project(ETCDLIB 
         VERSION 1.1.0
         LANGUAGES C CXX
@@ -46,16 +46,6 @@ if (CELIX_ETCDLIB OR ETCDLIB_STANDALONE)
     find_package(CURL REQUIRED)
     find_package(jansson 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.")
-        add_library(CURL::libcurl SHARED IMPORTED)
-        set_target_properties(CURL::libcurl PROPERTIES
-                IMPORTED_LOCATION "${CURL_LIBRARIES}"
-                INTERFACE_INCLUDE_DIRECTORIES "${CURL_INCLUDE_DIRS}"
-                )
-    endif ()
-
     add_library(etcdlib SHARED src/etcd.c)
     target_include_directories(etcdlib PUBLIC 
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/api>)
     target_include_directories(etcdlib PRIVATE src)

Reply via email to