From: Matthias Maier Date: Tue, 20 Jan 2015 00:00:58 +0000 (+0100) Subject: Testsuite: Fix a warning when configuring with cmake-3.1 X-Git-Tag: v8.3.0-rc1~526^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a4b23e6e6cbc0c3916d2a120d5da5bdda2c4306;p=dealii.git Testsuite: Fix a warning when configuring with cmake-3.1 --- diff --git a/tests/setup_testsubproject.cmake b/tests/setup_testsubproject.cmake index dea0a7c3a8..d1c63d07ba 100644 --- a/tests/setup_testsubproject.cmake +++ b/tests/setup_testsubproject.cmake @@ -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()