Skip to content

Commit

Permalink
strip llvm-dev dep in deb dev package of newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Jun 13, 2022
1 parent a35eeac commit 089b0c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ set(CPACK_DEBIAN_DEV_PACKAGE_DEPENDS "libboost-all-dev;libssl-dev")
find_program(DPKG_QUERY "dpkg-query")
if(DPKG_QUERY AND OS_RELEASE MATCHES "\n?ID=\"?ubuntu")
execute_process(COMMAND "${DPKG_QUERY}" -S "${LLVM_CMAKE_DIR}" COMMAND cut -d: -f1 RESULT_VARIABLE LLVM_PKG_FIND_RESULT OUTPUT_VARIABLE LLVM_PKG_FIND_OUTPUT)
if(LLVM_PKG_FIND_OUTPUT)
if(LLVM_PKG_FIND_RESULT EQUAL 0)
string(STRIP "${LLVM_PKG_FIND_OUTPUT}" LLVM_PKG_FIND_OUTPUT)
list(APPEND CPACK_DEBIAN_DEV_PACKAGE_DEPENDS "${LLVM_PKG_FIND_OUTPUT}")
endif()
endif()
Expand Down

0 comments on commit 089b0c5

Please sign in to comment.