Skip to content

Commit c58526d

Browse files
committed
CMakeLists.txt : try #2
1 parent 72e4872 commit c58526d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

CMakeLists.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -300,16 +300,16 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
300300
OUTPUT_STRIP_TRAILING_WHITESPACE)
301301
set(PACKAGES "libc6")
302302
if (WITH_LOCAL_BACKEND)
303-
string(CONCAT PACKAGES ${PACKAGES} " libaio")
303+
set(PACKAGES "${PACKAGES} libaio")
304304
endif()
305305
if(HAVE_AVAHI)
306-
string(CONCAT PACKAGES ${PACKAGES} " libavahi-client libavahi-common")
306+
set(PACKAGES "${PACKAGES} libavahi-client libavahi-common")
307307
endif()
308308
if(WITH_USB_BACKEND)
309-
string(CONCAT PACKAGES ${PACKAGES} " libusb-1")
309+
set(PACKAGES "${PACKAGES} libusb-1")
310310
endif()
311311
if(WITH_XML_BACKEND)
312-
string(CONCAT PACKAGES ${PACKAGES} " libxml2")
312+
set(PACKAGES "${PACKAGES} libxml2")
313313
endif()
314314
string(REGEX REPLACE " " ";" PACKAGES ${PACKAGES})
315315
foreach(package ${PACKAGES})
@@ -327,9 +327,8 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
327327
OUTPUT_VARIABLE NAME3_LIBAIO)
328328
string(REGEX REPLACE "[+-][a-z0-9A-Z.]*" "" NAME3_LIBAIO ${NAME3_LIBAIO})
329329
string(REGEX REPLACE "'" "" NAME3_LIBAIO ${NAME3_LIBAIO})
330-
string(CONCAT CPACK_DEBIAN_PACKAGE_DEPENDS
331-
${CPACK_DEBIAN_PACKAGE_DEPENDS}
332-
${match} " (>= " ${NAME3_LIBAIO} "), ")
330+
set(CPACK_DEBIAN_PACKAGE_DEPENDS
331+
"${CPACK_DEBIAN_PACKAGE_DEPENDS}${match} (>= ${NAME3_LIBAIO}), ")
333332
endif()
334333
endforeach(match)
335334
endforeach(package)

0 commit comments

Comments
 (0)