CPack: use APPEND, not WRITE

parent 83f52871
...@@ -63,7 +63,7 @@ if("${CPACK_GENERATOR}" STREQUAL "DEB") ...@@ -63,7 +63,7 @@ if("${CPACK_GENERATOR}" STREQUAL "DEB")
set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(SHLIBS_FILE "${CMAKE_CURRENT_BINARY_DIR}/shlibs") set(SHLIBS_FILE "${CMAKE_CURRENT_BINARY_DIR}/shlibs")
file(WRITE "${SHLIBS_FILE}" "libbctoolbox ${BCTOOLBOX_SO_VERSION} ${CPACK_PACKAGE_NAME}\n") file(WRITE "${SHLIBS_FILE}" "libbctoolbox ${BCTOOLBOX_SO_VERSION} ${CPACK_PACKAGE_NAME}\n")
file(WRITE "${SHLIBS_FILE}" "libbctoolbox-tester ${BCTOOLBOXTESTER_SO_VERSION} ${CPACK_PACKAGE_NAME}\n") file(APPEND "${SHLIBS_FILE}" "libbctoolbox-tester ${BCTOOLBOXTESTER_SO_VERSION} ${CPACK_PACKAGE_NAME}\n")
execute_process(COMMAND chmod 644 "${SHLIBS_FILE}") execute_process(COMMAND chmod 644 "${SHLIBS_FILE}")
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA ${SHLIBS_FILE}) set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA ${SHLIBS_FILE})
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment