1 # Include a version file in source packages, so that the version derived
2 # from the git repository becomes available for builds from source tarballs.
4 if(NOT CPACK_INSTALL_CMAKE_PROJECTS)
5 file(WRITE "${CPACK_TEMPORARY_DIRECTORY}/VERSION"
6 "${CPACK_SOURCE_PACKAGE_FILE_NAME}")