From d9889c2dd538e7d43f7e04b8169081d1b8e88900 Mon Sep 17 00:00:00 2001 From: maier Date: Thu, 24 Oct 2013 06:07:08 +0000 Subject: [PATCH] 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 --- deal.II/tests/build_tests/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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} -- 2.39.5