Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This is better for regex ... sorry
[simgrid.git] / teshsuite / smpi / mpich-test / CMakeLists.txt
index 74b267d..a58e2bc 100644 (file)
@@ -1,5 +1,3 @@
-cmake_minimum_required(VERSION 2.6)
-
 set(tesh_files
   ${tesh_files}
   PARENT_SCOPE
@@ -60,9 +58,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 "/[^/]*.std" "/" dstfile "${dstfile}")
+        string(REGEX REPLACE "/[^/]*.stdo" "/" dstfile "${dstfile}")
         #message("copy ${srcfile} to ${dstfile}")
-        file(COPY ${srcfile} DESTINATION ${dst_file})
+        file(COPY ${srcfile} DESTINATION ${dstfile})
     endforeach()
 endif()