Skip to content

Commit

Permalink
Remove unnecessary reference to zlib in .pc file
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyen Dinh Thi <[email protected]>
  • Loading branch information
rbvh-gnh1hc authored and clipka committed Dec 21, 2018
1 parent ab105d1 commit fecd1cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion automotive-dlt.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -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@

0 comments on commit fecd1cc

Please sign in to comment.