From: maier Date: Thu, 19 Sep 2013 19:55:08 +0000 (+0000) Subject: Bugfix: Do not copy over ".svn" directories in build tests X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3895080dfc60014e480c0b22dd6248799a3335c9;p=dealii-svn.git 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 --- 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} )