2019-04-07 10:00:36 +00:00
|
|
|
# Make the current version available to CPack
|
|
|
|
set(CPACK_PACKAGE_VERSION "@REV_VERSION@")
|
|
|
|
|
|
|
|
# Name the output file with the correct version
|
|
|
|
string(REPLACE "#CPACK_PACKAGE_VERSION#" "@REV_VERSION@" CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}")
|
|
|
|
|
2021-03-13 11:49:37 +00:00
|
|
|
string(REGEX REPLACE "^jgrpp-" "" CPACK_DEBIAN_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}")
|
|
|
|
|
2019-04-07 10:00:36 +00:00
|
|
|
if (CPACK_BUNDLE_PLIST_SOURCE)
|
|
|
|
# Rewrite the Info.plist.in to contain the correct version
|
|
|
|
file(READ ${CPACK_BUNDLE_PLIST_SOURCE} INFO_PLIST_CONTENT)
|
|
|
|
string(REPLACE "#CPACK_PACKAGE_VERSION#" "@REV_VERSION@" INFO_PLIST_CONTENT "${INFO_PLIST_CONTENT}")
|
|
|
|
file(WRITE ${CPACK_BUNDLE_PLIST} "${INFO_PLIST_CONTENT}")
|
|
|
|
endif (CPACK_BUNDLE_PLIST_SOURCE)
|