Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Generate a VERSION file with release number during make dist
[simgrid.git] / buildtools / Cmake / Distrib.cmake
index 91d09b5..6283f9b 100644 (file)
@@ -258,6 +258,7 @@ add_custom_command(
 add_custom_target(dist
   COMMENT "Removing the distribution directory"
   DEPENDS ${CMAKE_BINARY_DIR}/${PROJECT_NAME}-${release_version}.tar.gz
+  COMMAND ${CMAKE_COMMAND} -E echo ${PROJECT_NAME}-${release_version} > ${CMAKE_BINARY_DIR}/VERSION
   COMMAND ${CMAKE_COMMAND} -E remove_directory ${PROJECT_NAME}-${release_version}/
   )