dunecontrol tries to build installed (non-standard) DUNE modules
I created a test module depending on opm-simulators all modules are installed only the new module is below the directory where I call dunecontrol. Somehow dunecontrol thinks it needs to build all OPM modules:
# dunecontrol all
--- going to build opm-common opm-grid opm-simulators dune-bla ---
--- calling all for opm-common ---
--- calling vcsetup for opm-common ---
--- calling cmake for opm-common ---
cmake "-Ddune-common_DIR=/usr/lib/x86_64-linux-gnu/cmake/dune-common" "/usr/lib/dunecontrol/opm-common"
CMake Warning:
Ignoring extra path from command line:
"/usr/lib/dunecontrol/opm-common"
CMake Error: The source directory "/usr/lib/dunecontrol/opm-common" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
--- Failed to build opm-common ---
the problem might be the path (/usr/lib/dunecontrol/module) that dunecontrol determines for these modules.
# dunecontrol --only=dune-bla all
--- going to build dune-bla ---
--- calling all for dune-bla ---
--- calling vcsetup for dune-bla ---
--- calling cmake for dune-bla ---
cmake "-Ddune-common_DIR=/usr/lib/x86_64-linux-gnu/cmake/dune-common" "-Ddune-istl_DIR=/usr/lib/cmake/dune-istl" "-Dopm-common_DIR=/usr/lib/dunecontrol/opm-common/build-cmake" "-Ddune-geometry_DIR=/usr/lib/x86_64-linux-gnu/cmake/dune-geometry" "-Ddune-uggrid_DIR=/usr/lib/x86_64-linux-gnu/cmake/dune-uggrid" "-Ddune-grid_DIR=/usr/lib/x86_64-linux-gnu/cmake/dune-grid" "-Dopm-grid_DIR=/usr/lib/dunecontrol/opm-grid" "-Dopm-simulators_DIR=/usr/lib/dunecontrol/opm-simulators" "/test/dune-bla"
Even this fails because module_DIR is supposed to be the directory where the CMake configuration files are.
Any hints what changed? How do we determine the path used in module_DIR and whether a module needs to be built?