From: Matthias Maier Date: Thu, 24 Oct 2013 06:07:08 +0000 (+0000) Subject: Bugfix: Initialize _step_dir in build_tests/CMakeLists.txt before using it... X-Git-Tag: v8.1.0~529 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21e8dd40a790415659e7aaaef6e9e6c24a9a1541;p=dealii.git Bugfix: Initialize _step_dir in build_tests/CMakeLists.txt before using it... git-svn-id: https://svn.dealii.org/trunk@31405 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/tests/build_tests/CMakeLists.txt b/deal.II/tests/build_tests/CMakeLists.txt index ec3297c821..6916213740 100644 --- a/deal.II/tests/build_tests/CMakeLists.txt +++ b/deal.II/tests/build_tests/CMakeLists.txt @@ -62,12 +62,6 @@ FOREACH(_step_full ${_steps}) IF( "${TEST_PICKUP_REGEX}" STREQUAL "" OR _test MATCHES "${TEST_PICKUP_REGEX}" ) - ADD_CUSTOM_COMMAND( - OUTPUT ${_step_dir}/timeout_guard - COMMAND ${CMAKE_COMMAND} -E make_directory ${_step_dir} - COMMAND touch ${_step_dir}/timeout_guard - ) - SET(_step_dir ${CMAKE_CURRENT_BINARY_DIR}/${_step}.${_build_lowercase}) FILE(GLOB _files ${_step_full}/*) @@ -80,6 +74,12 @@ FOREACH(_step_full ${_steps}) ENDIF() ENDFOREACH() + ADD_CUSTOM_COMMAND( + OUTPUT ${_step_dir}/timeout_guard + COMMAND ${CMAKE_COMMAND} -E make_directory ${_step_dir} + COMMAND touch ${_step_dir}/timeout_guard + ) + # A rule how to copy the example step to the current directory: ADD_CUSTOM_COMMAND(OUTPUT ${_step_dir}/CMakeLists.txt ${_command}