Skip to content
Snippets Groups Projects
Commit 5d409f4a authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[CMake] REENABLE_ADD_TEST -> DUNE_REENABLE_ADD_TEST

We should always use the DUNE_ prefix for our cmake
variables, to avoid scoping clashes and to stay consistent.

Sorry for not doing this immediately, it was an oversight.
parent 4b6061db
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@
# and pass it to the :code:`TARGET` option, or you may rely on :ref:`dune_add_test`
# to do so.
#
# .. cmake_variable:: REENABLE_ADD_TEST
# .. cmake_variable:: DUNE_REENABLE_ADD_TEST
#
# You may set this variable to True either through your opts file or in your module
# (before the call to :code:`include(DuneMacros)`) to suppress the error that is thrown if
......@@ -235,8 +235,8 @@ macro(add_directory_test_target)
endmacro()
macro(add_test)
if(NOT REENABLE_ADD_TEST)
message(SEND_ERROR "Please dune_add_test instead of add_test! If you need add_test in a downstream project, set the variable REENABLE_ADD_TEST to True in that project to suppress this error.")
if(NOT DUNE_REENABLE_ADD_TEST)
message(SEND_ERROR "Please dune_add_test instead of add_test! If you need add_test in a downstream project, set the variable DUNE_REENABLE_ADD_TEST to True in that project to suppress this error.")
else()
_add_test(${ARGN})
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment