]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bugfix: Initialize _step_dir in build_tests/CMakeLists.txt before using it...
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 24 Oct 2013 06:07:08 +0000 (06:07 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 24 Oct 2013 06:07:08 +0000 (06:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@31405 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/tests/build_tests/CMakeLists.txt

index ec3297c821f841c7155b628aaeb613f3c15b87cf..691621374085fa39813bac7d6dded778240ccc8f 100644 (file)
@@ -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}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.