From: navarrop Date: Mon, 10 Jan 2011 11:41:29 +0000 (+0000) Subject: Don't remove files from svn sources. X-Git-Tag: v3.6_beta2~540 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3a99b6074da352f45f65b50526fdd018894c00e4?ds=sidebyside Don't remove files from svn sources. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9388 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/buildtools/Cmake/CompleteInFiles.cmake b/buildtools/Cmake/CompleteInFiles.cmake index dc98c0cae4..df02155192 100644 --- a/buildtools/Cmake/CompleteInFiles.cmake +++ b/buildtools/Cmake/CompleteInFiles.cmake @@ -643,9 +643,6 @@ configure_file(${CMAKE_HOME_DIRECTORY}/src/smpi/smpicc.in ${CMAKE_CURRENT_BINARY configure_file(${CMAKE_HOME_DIRECTORY}/src/smpi/smpif2c.in ${CMAKE_CURRENT_BINARY_DIR}/bin/smpif2c @ONLY) configure_file(${CMAKE_HOME_DIRECTORY}/src/smpi/smpiff.in ${CMAKE_CURRENT_BINARY_DIR}/bin/smpiff @ONLY) configure_file(${CMAKE_HOME_DIRECTORY}/src/smpi/smpirun.in ${CMAKE_CURRENT_BINARY_DIR}/bin/smpirun @ONLY) -configure_file(${CMAKE_HOME_DIRECTORY}/examples/smpi/hostfile ${CMAKE_CURRENT_BINARY_DIR}/examples/smpi/hostfile COPYONLY) -configure_file(${CMAKE_HOME_DIRECTORY}/examples/msg/small_platform.xml ${CMAKE_CURRENT_BINARY_DIR}/examples/msg/small_platform.xml COPYONLY) -configure_file(${CMAKE_HOME_DIRECTORY}/examples/msg/small_platform_with_routers.xml ${CMAKE_CURRENT_BINARY_DIR}/examples/msg/small_platform_with_routers.xml COPYONLY) exec_program("chmod a=rwx ${CMAKE_CURRENT_BINARY_DIR}/bin/smpicc" OUTPUT_VARIABLE OKITOKI) exec_program("chmod a=rwx ${CMAKE_CURRENT_BINARY_DIR}/bin/smpif2c" OUTPUT_VARIABLE OKITOKI) @@ -662,11 +659,22 @@ ${CMAKE_CURRENT_BINARY_DIR}/bin/smpiff ${CMAKE_CURRENT_BINARY_DIR}/bin/smpirun ${CMAKE_CURRENT_BINARY_DIR}/bin/colorize ${CMAKE_CURRENT_BINARY_DIR}/bin/simgrid_update_xml -${CMAKE_CURRENT_BINARY_DIR}/examples/smpi/hostfile ${CMAKE_CURRENT_BINARY_DIR}/examples/smpi/smpi_traced.trace -${CMAKE_CURRENT_BINARY_DIR}/examples/msg/small_platform.xml -${CMAKE_CURRENT_BINARY_DIR}/examples/msg/small_platform_with_routers.xml ) +if("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_HOME_DIRECTORY}") +else("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_HOME_DIRECTORY}") + configure_file(${CMAKE_HOME_DIRECTORY}/examples/smpi/hostfile ${CMAKE_CURRENT_BINARY_DIR}/examples/smpi/hostfile COPYONLY) + configure_file(${CMAKE_HOME_DIRECTORY}/examples/msg/small_platform.xml ${CMAKE_CURRENT_BINARY_DIR}/examples/msg/small_platform.xml COPYONLY) + configure_file(${CMAKE_HOME_DIRECTORY}/examples/msg/small_platform_with_routers.xml ${CMAKE_CURRENT_BINARY_DIR}/examples/msg/small_platform_with_routers.xml COPYONLY) + + set(generate_files_to_clean + ${generate_files_to_clean} + ${CMAKE_CURRENT_BINARY_DIR}/examples/smpi/hostfile + ${CMAKE_CURRENT_BINARY_DIR}/examples/msg/small_platform.xml + ${CMAKE_CURRENT_BINARY_DIR}/examples/msg/small_platform_with_routers.xml + ) +endif("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_HOME_DIRECTORY}") + SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${generate_files_to_clean}")