From 3895080dfc60014e480c0b22dd6248799a3335c9 Mon Sep 17 00:00:00 2001 From: maier Date: Thu, 19 Sep 2013 19:55:08 +0000 Subject: [PATCH] Bugfix: Do not copy over ".svn" directories in build tests git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30843 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/build_tests/CMakeLists.txt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/build_tests/CMakeLists.txt b/tests/build_tests/CMakeLists.txt index 7b57999b32..382b3b38f1 100644 --- a/tests/build_tests/CMakeLists.txt +++ b/tests/build_tests/CMakeLists.txt @@ -63,13 +63,19 @@ FOREACH(_step_full ${_steps}) SET(_step_dir ${CMAKE_CURRENT_BINARY_DIR}/${_step}.${_build_lowercase}) FILE(GLOB _files ${_step_full}/*) - LIST(REMOVE_ITEM _files ${_step_full}/doc) + SET(_command) + FOREACH(_file ${_files}) + IF(NOT _file MATCHES "/(doc|.svn)") + LIST(APPEND _command + COMMAND ${CMAKE_COMMAND} -E copy ${_file} ${_step_dir} + ) + ENDIF() + ENDFOREACH() # A rule how to copy the example step to the current directory: ADD_CUSTOM_COMMAND(OUTPUT ${_step_dir}/CMakeLists.txt - COMMAND ${CMAKE_COMMAND} -E copy_directory ${_step_full} ${_step_dir} - # Todo: Refactor: - COMMAND ${CMAKE_COMMAND} -E remove_directory ${_step_dir}/doc + COMMAND ${CMAKE_COMMAND} -E make_directory ${_step_dir} + ${_command} DEPENDS ${_files} ) -- 2.39.5