From: maier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Sun, 6 Oct 2013 19:41:34 +0000 (+0000)
Subject: Bugfix: build_tests should be recompiled if the underlying library changes...
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f07c4349c0ed86db67345bd67ca4ede496a483d1;p=dealii-svn.git

Bugfix: build_tests should be recompiled if the underlying library changes...


git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31153 0785d39b-7218-0410-832d-ea1e28bc413d
---

diff --git a/tests/build_tests/CMakeLists.txt b/tests/build_tests/CMakeLists.txt
index 382b3b38f1..a83326b4a2 100644
--- a/tests/build_tests/CMakeLists.txt
+++ b/tests/build_tests/CMakeLists.txt
@@ -16,6 +16,8 @@
 
 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
 INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
+PROJECT(testsuite CXX)
+INCLUDE(${DEAL_II_TARGET_CONFIG})
 
 #
 # build_tests tests are special:
@@ -76,8 +78,11 @@ FOREACH(_step_full ${_steps})
       ADD_CUSTOM_COMMAND(OUTPUT ${_step_dir}/CMakeLists.txt
         COMMAND ${CMAKE_COMMAND} -E make_directory ${_step_dir}
         ${_command}
-        DEPENDS ${_files}
-        )
+        DEPENDS
+          ${_files}
+          ${DEAL_II_TARGET_DEBUG}
+          ${DEAL_II_TARGET_RELEASE}
+          )
 
       # And a rule on how to configure the example step:
       ADD_CUSTOM_COMMAND(OUTPUT ${_step_dir}/configure_output