From a7dcdaa6dce6c21891148dff5661fa8ec8ae572a Mon Sep 17 00:00:00 2001 From: Timo Koch Date: Mon, 9 Nov 2020 10:49:31 +0100 Subject: [PATCH 1/2] [cmake][doc] Fix trailing whitespace --- cmake/modules/DumuxTestMacros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/DumuxTestMacros.cmake b/cmake/modules/DumuxTestMacros.cmake index e6a9e926bc..a8a6330972 100644 --- a/cmake/modules/DumuxTestMacros.cmake +++ b/cmake/modules/DumuxTestMacros.cmake @@ -190,7 +190,7 @@ # :multi: # :argname: condition # -# A number of conditions that CMake should evaluate. +# A number of conditions that CMake should evaluate. # Uses the same mechanics that `dumux_add_test` uses to evaluate its CMAKE_GUARD argument. # # The passed condition can be a complex expression like -- GitLab From acf6db5a233bfe9c27eed2e8d66bf901e45e83db Mon Sep 17 00:00:00 2001 From: Timo Koch Date: Mon, 9 Nov 2020 10:53:17 +0100 Subject: [PATCH 2/2] [cmake][bugfix] Correct variable name --- cmake/modules/DumuxTestMacros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/DumuxTestMacros.cmake b/cmake/modules/DumuxTestMacros.cmake index a8a6330972..a892127279 100644 --- a/cmake/modules/DumuxTestMacros.cmake +++ b/cmake/modules/DumuxTestMacros.cmake @@ -220,7 +220,7 @@ function(dumux_evaluate_cmake_guard GUARD_LETS_YOU_PASS) # determine if all condition of the guard are met set(${GUARD_LETS_YOU_PASS} TRUE PARENT_SCOPE) set(FAILED_CONDITION_PRINTING "") - foreach(condition ${ADDTEST_CMAKE_GUARD}) + foreach(condition ${EVALGUARD_CMAKE_GUARD}) separate_arguments(condition) if(NOT (${condition})) set(${GUARD_LETS_YOU_PASS} FALSE PARENT_SCOPE) -- GitLab