Fix: Data races on cursor state in OpenGL backends
[openttd-github.git] / CPackProperties.cmake.in
blob824c50f93efb27360ec0a370e4f10be74e4b88d2
1 # Make the current version available to CPack
2 set(CPACK_PACKAGE_VERSION "@REV_VERSION@")
4 # Name the output file with the correct version
5 string(REPLACE "#CPACK_PACKAGE_VERSION#" "@REV_VERSION@" CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}")
7 if (CPACK_BUNDLE_PLIST_SOURCE)
8     # Rewrite the Info.plist.in to contain the correct version
9     file(READ ${CPACK_BUNDLE_PLIST_SOURCE} INFO_PLIST_CONTENT)
10     string(REPLACE "#CPACK_PACKAGE_VERSION#" "@REV_VERSION@" INFO_PLIST_CONTENT "${INFO_PLIST_CONTENT}")
11     file(WRITE ${CPACK_BUNDLE_PLIST} "${INFO_PLIST_CONTENT}")
12 endif (CPACK_BUNDLE_PLIST_SOURCE)