File tree 5 files changed +6
-6
lines changed
5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -137,10 +137,10 @@ set(LICENSE "Mozilla Public License Version 2.0")
137
137
find_package (Threads REQUIRED)
138
138
if (WITH_DLT_LOGSTORAGE_GZIP)
139
139
find_package (ZLIB 1.2.9 REQUIRED)
140
- set (ZLIB_LIBRARY "ZLIB::ZLIB " )
140
+ set (ZLIB_LIBRARY "-lz " )
141
141
elseif (WITH_DLT_COREDUMPHANDLER OR WITH_DLT_FILETRANSFER)
142
142
find_package (ZLIB REQUIRED)
143
- set (ZLIB_LIBRARY "ZLIB::ZLIB " )
143
+ set (ZLIB_LIBRARY "-lz " )
144
144
else ()
145
145
set (ZLIB_LIBRARY "" )
146
146
endif ()
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ if(WITH_DLT_COREDUMPHANDLER)
29
29
endif (WITH_CITYHASH)
30
30
31
31
add_executable (dlt-cdh ${dlt_cdh_SRCS} )
32
- target_link_libraries (dlt-cdh ${ZLIB_LIBRARY} )
32
+ target_link_libraries (dlt-cdh ZLIB::ZLIB )
33
33
set_target_properties (dlt-cdh PROPERTIES LINKER_LANGUAGE C)
34
34
35
35
configure_file (${PROJECT_SOURCE_DIR} /src/core_dump_handler/50-coredump.conf.cmake ${PROJECT_BINARY_DIR} /core_dump_handler/50-coredump.conf)
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ if (WITH_SYSTEMD_SOCKET_ACTIVATION)
67
67
target_link_libraries (dlt-daemon systemd)
68
68
endif ()
69
69
if (WITH_DLT_LOGSTORAGE_GZIP)
70
- target_link_libraries (dlt-daemon ${ZLIB_LIBRARY} )
70
+ target_link_libraries (dlt-daemon ZLIB::ZLIB )
71
71
endif ()
72
72
73
73
install (TARGETS dlt-daemon
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ if(WITH_SYSTEMD_JOURNAL)
39
39
endif (WITH_SYSTEMD_JOURNAL)
40
40
41
41
if (WITH_DLT_FILETRANSFER)
42
- target_link_libraries (dlt-system ${ZLIB_LIBRARY} )
42
+ target_link_libraries (dlt-system ZLIB::ZLIB )
43
43
endif (WITH_DLT_FILETRANSFER)
44
44
45
45
set_target_properties (dlt-system PROPERTIES LINKER_LANGUAGE C)
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ endif()
130
130
foreach (target IN LISTS TARGET_LIST)
131
131
set (target_SRCS ${target} )
132
132
add_executable (${target} ${target_SRCS} ${systemd_SRCS} )
133
- target_link_libraries (${target} ${DLT_DAEMON_LIBRARIES} ${ZLIB_LIBRARY} )
133
+ target_link_libraries (${target} ${DLT_DAEMON_LIBRARIES} ZLIB::ZLIB )
134
134
if (WITH_DLT_INSTALLED_TESTS)
135
135
install (TARGETS ${target} RUNTIME DESTINATION ${DLT_TEST_DIR} )
136
136
if (EXISTS ${PROJECT_SOURCE_DIR} /tests/${target} .sh)
You can’t perform that action at this time.
0 commit comments