Skip to content
Snippets Groups Projects
Commit 90ad2457 authored by Christoph Grüninger's avatar Christoph Grüninger Committed by Carsten Gräser
Browse files

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


(cherry picked from commit b7809c2d)
Signed-off-by: default avatarCarsten Gräser <graeser@dune-project.org>
parent 80630492
Branches
Tags v2.4.0-rc1
1 merge request!2512017-05 merge of upstream repository
......@@ -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.
Please register or to comment