Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'v3_8_x'
[simgrid.git] / teshsuite / smpi / mpich-test / CMakeLists.txt
index d040384..ca3a518 100644 (file)
@@ -50,6 +50,7 @@ set(stdo_std_smpi
   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/env/env.std
   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/profile/ptest.std
   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/coll/allredmany.std
+  ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/coll/allred.std
   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/coll/allredf.std
   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/coll/scatterv.std
 )
@@ -58,9 +59,11 @@ if("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_HOME_DIRECTORY}")
 else()
     foreach(srcfile ${stdo_std_smpi})
         set(dstfile ${srcfile})
-        string(REPLACE "${CMAKE_HOME_DIRECTORY}" "${CMAKE_BINARY_DIR}" dst_file "${dstfile}")
+        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 ${dst_file})
+        file(COPY ${srcfile} DESTINATION ${dstfile})
     endforeach()
 endif()