]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Ensure that DIFF_EXECUTABLE is always valid
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 23 Apr 2014 12:59:22 +0000 (12:59 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 23 Apr 2014 12:59:22 +0000 (12:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@32816 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_add_test.cmake
deal.II/cmake/setup_testsubproject.cmake

index d2569ddde70280160a2f9d88dd4d96744f43cb28..a1d6e1ac62e8684e7b48f04e98a5001967f18dc5 100644 (file)
@@ -77,9 +77,7 @@ MACRO(DEAL_II_ADD_TEST _category _test_name _comparison_file)
 
   SET(_test_diff_variable TEST_DIFF)
   IF(_file MATCHES "\\.binary\\.")
-    IF(NOT DIFF_EXECUTABLE MATCHES "-NOTFOUND")
-      SET(_test_diff_variable DIFF_EXECUTABLE)
-    ENDIF()
+    SET(_test_diff_variable DIFF_EXECUTABLE)
   ENDIF()
 
   #
index 6ed0f5dfb41e12b33228224517f05cd1ec737ca7..df352ffb473c597070ea8a246f5a6064ac038fd8 100644 (file)
@@ -106,6 +106,9 @@ IF("${TEST_DIFF}" STREQUAL "")
 
   IF(NOT NUMDIFF_EXECUTABLE MATCHES "-NOTFOUND")
     SET(TEST_DIFF ${NUMDIFF_EXECUTABLE} -a 1e-6 -r 1e-8 -s ' \\t\\n:')
+    IF(DIFF_EXECUTABLE MATCHES "-NOTFOUND")
+      SET(DIFF_EXECUTABLE ${NUMDIFF_EXECUTABLE})
+    ENDIF()
   ELSEIF(NOT DIFF_EXECUTABLE MATCHES "-NOTFOUND")
     SET(TEST_DIFF ${DIFF_EXECUTABLE})
   ELSE()

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.