-cmake_minimum_required(VERSION 2.6)
-
set(tesh_files
${tesh_files}
PARENT_SCOPE
${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
)
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}")
#message("copy ${srcfile} to ${dstfile}")
- file(COPY ${srcfile} DESTINATION ${dst_file})
+ configure_file("${srcfile}" "${dstfile}" COPYONLY)
endforeach()
endif()