CPack: do not query for project properties, they are not defined yet

parent 7c91de62
......@@ -62,10 +62,8 @@ endif()
if("${CPACK_GENERATOR}" STREQUAL "DEB")
set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(SHLIBS_FILE "${CMAKE_CURRENT_BINARY_DIR}/shlibs")
get_target_property(BCTOOLBOX_SOVERSION bctoolbox SOVERSION)
get_target_property(BCTOOLBOXTESTER_SOVERSION bctoolbox-tester SOVERSION)
file(WRITE "${SHLIBS_FILE}" "libbctoolbox ${BCTOOLBOX_SOVERSION} ${CPACK_PACKAGE_NAME}\n")
file(WRITE "${SHLIBS_FILE}" "libbctoolbox-tester ${BCTOOLBOXTESTER_SOVERSION} ${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")
execute_process(COMMAND chmod 644 "${SHLIBS_FILE}")
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA ${SHLIBS_FILE})
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