From 89201b587c4ab50c528177913be26ce24f0667a4 Mon Sep 17 00:00:00 2001 From: navarro Date: Fri, 26 Oct 2012 17:09:06 +0200 Subject: [PATCH] This is better for regex ... sorry --- teshsuite/smpi/mpich-test/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/teshsuite/smpi/mpich-test/CMakeLists.txt b/teshsuite/smpi/mpich-test/CMakeLists.txt index d040384cd3..a58e2bccf9 100644 --- a/teshsuite/smpi/mpich-test/CMakeLists.txt +++ b/teshsuite/smpi/mpich-test/CMakeLists.txt @@ -58,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() -- 2.20.1