summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyen Dinh Thi <Thi.NguyenDinh@vn.bosch.com>2018-11-23 14:19:54 +0100
committerChristoph Lipka <clipka@users.noreply.github.com>2018-12-21 10:16:46 +0100
commitfecd1ccc6da327ae846db9a6feac7917120c99ac (patch)
tree2f45f41aa8dc436abf532282dd6037b1ede38a50
parentab105d1671789fc9bd649f7e9ce3e6af22d30f0e (diff)
downloadDLT-daemon-fecd1ccc6da327ae846db9a6feac7917120c99ac.tar.gz
Remove unnecessary reference to zlib in .pc file
Signed-off-by: Nguyen Dinh Thi <Thi.NguyenDinh@vn.bosch.com>
-rw-r--r--CMakeLists.txt3
-rw-r--r--automotive-dlt.pc.in2
2 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 225ba17..f57b174 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,7 +88,10 @@ set( LICENSE "Mozilla Public License Version 2.0" )
# Build, project and include settings
find_package(Threads REQUIRED)
if(WITH_DLT_SYSTEM)
+ set(ZLIB_LIBRARY "-lz")
find_package(ZLIB REQUIRED)
+else(WITH_DLT_SYSTEM)
+ set(ZLIB_LIBRARY "")
endif(WITH_DLT_SYSTEM)
find_package(PkgConfig)
diff --git a/automotive-dlt.pc.in b/automotive-dlt.pc.in
index d587ea1..d19a1e4 100644
--- a/automotive-dlt.pc.in
+++ b/automotive-dlt.pc.in
@@ -24,6 +24,6 @@ Name: DLT
Description: Diagnostic Log and Trace
Version: @DLT_VERSION@
Requires:
-Libs: -L${libdir} -ldlt -lrt -lpthread -lz
+Libs: -L${libdir} -ldlt -lrt -lpthread @ZLIB_LIBRARY@
Cflags: -I${includedir}/dlt -DDLT_@DLT_MAJOR_VERSION@_@DLT_MINOR_VERSION@