]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix path to cmake file. 1379/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 17 Aug 2015 14:39:41 +0000 (09:39 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 17 Aug 2015 14:39:41 +0000 (09:39 -0500)
The current path leads to a failure on my system when calling
'ninja setup_tests':

FAILED: cd /node/bangerth/trunk/build/tests/sharedtria && /w/bangerth/share/software/cmake-2.8.12.2/bin/cmake -GNinja -DDEAL_II_DIR=/node/bangerth/trunk/build -UDIFF_DIR -UNUMDIFF_DIR -UTEST_PICKUP_REGEX -UTEST_TIME_LIMIT /node/bangerth/trunk/dealii/tests/sharedtria > /dev/null
CMake Error at CMakeLists.txt:2 (INCLUDE):
  include could not find load file:

    ../tests/setup_testsubproject.cmake

CMake Error at CMakeLists.txt:4 (INCLUDE):
  include called with wrong number of arguments.  Include only takes one
  file.

Fix this by providing the same path as in the tests/distributed
directory.

tests/sharedtria/CMakeLists.txt

index 0b20ef4e0b541d0b7c47be2819b9b040c5b3df77..663b1da70cd992668a0a175bf7e98d1cefb811f9 100644 (file)
@@ -1,5 +1,5 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.9)
-INCLUDE(${DEAL_II_SOURCE_DIR}/tests/setup_testsubproject.cmake)
+INCLUDE(../setup_testsubproject.cmake)
 PROJECT(testsuite CXX)
 INCLUDE(${DEAL_II_TARGET_CONFIG})
 DEAL_II_PICKUP_TESTS()

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.