celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnol...@apache.org
Subject celix git commit: Removes unused curl.h include from etcdlib_test
Date Wed, 07 Feb 2018 09:57:12 GMT
Repository: celix
Updated Branches:
  refs/heads/develop ea782bd38 -> f98801160


Removes unused curl.h include from etcdlib_test


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/f9880116
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/f9880116
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/f9880116

Branch: refs/heads/develop
Commit: f98801160af8076ddd890243a4dbd25a0da419c6
Parents: ea782bd
Author: Pepijn Noltes <pepijnnoltes@gmail.com>
Authored: Wed Feb 7 10:56:57 2018 +0100
Committer: Pepijn Noltes <pepijnnoltes@gmail.com>
Committed: Wed Feb 7 10:56:57 2018 +0100

----------------------------------------------------------------------
 etcdlib/CMakeLists.txt      | 2 +-
 etcdlib/test/etcdlib_test.c | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/f9880116/etcdlib/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/etcdlib/CMakeLists.txt b/etcdlib/CMakeLists.txt
index 195eaf7..eae7d0f 100644
--- a/etcdlib/CMakeLists.txt
+++ b/etcdlib/CMakeLists.txt
@@ -74,7 +74,7 @@ set_target_properties(etcdlib_static PROPERTIES "SOVERSION" 1)
 target_link_libraries(etcdlib_static PRIVATE ${CURL_LIBRARIES} ${JANSSON_LIBRARY})
 
 add_executable(etcdlib_test ${CMAKE_CURRENT_SOURCE_DIR}/test/etcdlib_test.c)
-target_link_libraries(etcdlib_test etcdlib_static)
+target_link_libraries(etcdlib_test PRIVATE etcdlib_static)
 
 #TODO install etcdlib_static. For now left out, because the imported target leaks library
paths
 install(DIRECTORY api/ DESTINATION include/etcdlib COMPONENT ${ETCDLIB_CMP})

http://git-wip-us.apache.org/repos/asf/celix/blob/f9880116/etcdlib/test/etcdlib_test.c
----------------------------------------------------------------------
diff --git a/etcdlib/test/etcdlib_test.c b/etcdlib/test/etcdlib_test.c
index 200b1a2..7c2d573 100644
--- a/etcdlib/test/etcdlib_test.c
+++ b/etcdlib/test/etcdlib_test.c
@@ -27,7 +27,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
-#include <curl/curl.h>
 #include "etcd.h"
 
 #include <pthread.h>


Mime
View raw message