Skip to content
Snippets Groups Projects
Commit b7809c2d authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[cmake][Release] Rename variable to disable test magic.

parent ebca3539
No related branches found
No related tags found
No related merge requests found
......@@ -654,6 +654,8 @@ macro(dune_project)
# activate testing the DUNE way
include(DuneTests)
# enable this way of testing by default
set(DUNE_TEST_MAGIC ON)
# activate pkg-config
include(DunePkgConfig)
......@@ -882,7 +884,8 @@ endif()
configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
endif("${ARGC}" EQUAL "1")
if(NOT DUNE_DISABLE_TEST_MAGIC)
# add dependiencies to target "test"
if(DUNE_TEST_MAGIC)
test_dep()
endif()
......
......@@ -47,7 +47,7 @@ endmacro(get_directory_test_target _target _dir)
# E.g. for dune/istl/test the target will be dune_istl_test.
#
macro(add_directory_test_target _target)
if(NOT DUNE_DISABLE_TEST_MAGIC)
if(DUNE_TEST_MAGIC)
get_directory_test_target(${_target} "${CMAKE_CURRENT_BINARY_DIR}")
add_custom_target(${${_target}})
dune_common_script_dir(SCRIPT_DIR)
......
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