Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Copying the file once is sufficient.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 5 Jul 2012 09:47:00 +0000 (11:47 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 5 Jul 2012 20:34:23 +0000 (22:34 +0200)
buildtools/Cmake/Distrib.cmake

index 3b775d8..15b71db 100644 (file)
@@ -267,13 +267,13 @@ foreach(file ${source_to_pack})
     TARGET dist-dir
     COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/${file} ${PROJECT_NAME}-${release_version}/${file_location}/
     )
-
-  add_custom_command(
-    TARGET dist-dir
-    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/Scripts/Makefile.default ${PROJECT_NAME}-${release_version}/Makefile
-    )
 endforeach(file ${source_to_pack})
 
+add_custom_command(
+  TARGET dist-dir
+  COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/Scripts/Makefile.default ${PROJECT_NAME}-${release_version}/Makefile
+  )
+
 ######################################
 ### Fill in the "make dist" target ###
 ######################################