[cmake][bug] Alugrid test fails for downstream modules
Since 33080d63, CMake performs some grid test for dune-alugrid using try_compile
. Unfortunately, it seems to run this test in all downstream modules too (like other cmake tests). The problem is that the path variables ${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
then correspond to the downstream module and not dune-alugrid which leads to the following CMake error
CMake Error at ----/dumux/build-cmake/dune/alugrid/test/CMakeFiles/CMakeTmp/CMakeLists.txt:13 (add_executable):
Cannot find source file:
----/dumux/dune/alugrid/test/testgrids.cc
As you can see it looks for the alu test source inside the downstream module dumux
. The error occurs when configuring the downstream module.
@robert.kloefkorn you committed 33080d63, can you confirm this?
Edited by Timo Koch