From: Arnaud Giersch Date: Mon, 12 Nov 2012 20:19:11 +0000 (+0100) Subject: Use configure_file(... COPYONLY) instead of file(COPY ...). X-Git-Tag: v3_9_rc1~91^2~114 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/302db92b2c868b5f55ec8a32e440e5ecf3e94f5b?hp=996f82a2b67e49a58b1de059bc44143e17a25ff6;ds=sidebyside Use configure_file(... COPYONLY) instead of file(COPY ...). file(COPY ...) does not exist in cmake before 2.8. --- diff --git a/teshsuite/smpi/mpich-test/CMakeLists.txt b/teshsuite/smpi/mpich-test/CMakeLists.txt index ca3a518b6f..f5c12a7742 100644 --- a/teshsuite/smpi/mpich-test/CMakeLists.txt +++ b/teshsuite/smpi/mpich-test/CMakeLists.txt @@ -60,10 +60,8 @@ else() foreach(srcfile ${stdo_std_smpi}) set(dstfile ${srcfile}) string(REPLACE "${CMAKE_HOME_DIRECTORY}" "${CMAKE_BINARY_DIR}" dstfile "${dstfile}") - string(REGEX REPLACE "/[^/]*.stdo" "/" dstfile "${dstfile}") - string(REGEX REPLACE "/[^/]*.std" "/" dstfile "${dstfile}") #message("copy ${srcfile} to ${dstfile}") - file(COPY ${srcfile} DESTINATION ${dstfile}) + configure_file("${srcfile}" "${dstfile}" COPYONLY) endforeach() endif()