[Dune] dune_add_test instead of add_test

Martin Nolte nolte at mathematik.uni-freiburg.de
Wed Jul 12 14:56:30 CEST 2017


Hi Kartik,

since DUNE 2.5, there is a new CMake function called dune_add_test, which is a
dunified version of CMake's plain add_test. We discourage using add_test in
DUNE modules and disabled it by default. That's why you get the error.

If you really want add_test, just define the mentioned CMake variable to TRUE
in your debug.opts file and it should work fine.

If you don't know what I am talking about and just downloaded the modules,
please contact the upstream developers of multidomain or dumux (depending on
which module caused the error). They should have adapted their code by now.

Best,

Martin

On 07/12/2017 02:33 PM, Kartik Jain wrote:
> Hi,
> 
> I wanted to look at the multidomain functionality in dumux, for which I cloned
> the associated modules today. I compile all of them using:
> 
> ./dune-common/bin/dunecontrol --opts=dumux/debug.opts all
> 
> I get an error that states:
> 
> CMake Error at
> /home/software/dune-common/cmake/modules/DuneTestMacros.cmake:318 (message):
>   Please use 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.
> 
> I could not really trace the roots of this error yet and any help would be
> greatly appreciated.
> 
> Best,
> Kartik
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at lists.dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 

-- 
Dr. Martin Nolte <nolte at mathematik.uni-freiburg.de>

Universität Freiburg                                   phone: +49-761-203-5630
Abteilung für angewandte Mathematik                    fax:   +49-761-203-5632
Hermann-Herder-Straße 10
79104 Freiburg, Germany




More information about the Dune mailing list