building tests after cleaning build directory fails
Building dune-common (including tests), cleaning the build directory and rebuilding dune-common (including tests) fails:
$ cmake --build build-cmake -- all build_tests
[...]
$ cmake --build build-cmake -- clean
[1/1] Cleaning all built files...
Cleaning... 267 files.
$ cmake --build build-cmake -- all build_tests
[...]
[164/267] Building CXX object dune/common/simd/test/CMakeFiles/looptest.dir/looptest.cc.o
FAILED: dune/common/simd/test/CMakeFiles/looptest.dir/looptest.cc.o
/usr/bin/g++-8 -DENABLE_GMP=1 -DENABLE_MPI=1 -DENABLE_TBB=1 -DHAVE_CONFIG_H -DMPICH_SKIP_MPICXX -DMPIPP_H -DMPI_NO_CPPBIND -D_TBB_CPP0X -I. -I../ -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include -std=c++17 -no-pie -fconcepts -O2 -ggdb3 -fdiagnostics-color=always -Wall -ftemplate-backtrace-limit=0 -Wno-sign-compare -fPIE -MD -MT dune/common/simd/test/CMakeFiles/looptest.dir/looptest.cc.o -MF dune/common/simd/test/CMakeFiles/looptest.dir/looptest.cc.o.d -o dune/common/simd/test/CMakeFiles/looptest.dir/looptest.cc.o -c dune/common/simd/test/looptest.cc
g++-8: error: dune/common/simd/test/looptest.cc: No such file or directory
g++-8: fatal error: no input files
compilation terminated.
[173/267] Building CXX object dune/common/test/CMakeFiles/debugaligntest.dir/debugaligntest.cc.o
ninja: build stopped: subcommand failed.
I use ninja instead of make to build dune-common; not sure if it matters.