]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Testsuite: Fix a warning when configuring with cmake-3.1 459/head
authorMatthias Maier <tamiko@kyomu.43-1.org>
Tue, 20 Jan 2015 00:00:58 +0000 (01:00 +0100)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Tue, 20 Jan 2015 00:00:58 +0000 (01:00 +0100)
tests/setup_testsubproject.cmake

index dea0a7c3a8fa08264f8b8363c83b723179654d06..d1c63d07bab47879fb79ffc0ac4006b970bc33c6 100644 (file)
@@ -63,11 +63,10 @@ FOREACH(_var
   TEST_TIME_LIMIT
   TEST_PICKUP_REGEX
   )
-  # Environment wins:
   IF(DEFINED ENV{${_var}})
     SET(${_var} $ENV{${_var}})
   ENDIF()
-  IF(NOT "${_var}" STREQUAL "")
+  IF(NOT "${${_var}}" STREQUAL "")
     SET(${_var} "${${_var}}" CACHE STRING "" FORCE)
   ENDIF()
 ENDFOREACH()

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.