Skip to content

Commit

Permalink
CMakeLists.txt : try #2
Browse files Browse the repository at this point in the history
  • Loading branch information
rgetz committed Dec 27, 2016
1 parent 72e4872 commit c58526d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,16 +300,16 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
OUTPUT_STRIP_TRAILING_WHITESPACE)
set(PACKAGES "libc6")
if (WITH_LOCAL_BACKEND)
string(CONCAT PACKAGES ${PACKAGES} " libaio")
set(PACKAGES "${PACKAGES} libaio")
endif()
if(HAVE_AVAHI)
string(CONCAT PACKAGES ${PACKAGES} " libavahi-client libavahi-common")
set(PACKAGES "${PACKAGES} libavahi-client libavahi-common")
endif()
if(WITH_USB_BACKEND)
string(CONCAT PACKAGES ${PACKAGES} " libusb-1")
set(PACKAGES "${PACKAGES} libusb-1")
endif()
if(WITH_XML_BACKEND)
string(CONCAT PACKAGES ${PACKAGES} " libxml2")
set(PACKAGES "${PACKAGES} libxml2")
endif()
string(REGEX REPLACE " " ";" PACKAGES ${PACKAGES})
foreach(package ${PACKAGES})
Expand All @@ -327,9 +327,8 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
OUTPUT_VARIABLE NAME3_LIBAIO)
string(REGEX REPLACE "[+-][a-z0-9A-Z.]*" "" NAME3_LIBAIO ${NAME3_LIBAIO})
string(REGEX REPLACE "'" "" NAME3_LIBAIO ${NAME3_LIBAIO})
string(CONCAT CPACK_DEBIAN_PACKAGE_DEPENDS
${CPACK_DEBIAN_PACKAGE_DEPENDS}
${match} " (>= " ${NAME3_LIBAIO} "), ")
set(CPACK_DEBIAN_PACKAGE_DEPENDS
"${CPACK_DEBIAN_PACKAGE_DEPENDS}${match} (>= ${NAME3_LIBAIO}), ")
endif()
endforeach(match)
endforeach(package)
Expand Down

0 comments on commit c58526d

Please sign in to comment.