<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hey Simon,<br><br></div>I am no expert on installation issues, so I will only try to answer the first part:<br><br></div>DUNE_CONTROL_PATH is only used to find sources of Dune modules, not<br></div>their builds, so the behaviour you see is to be expected. If you want to build<br></div>a module against a specific set of build directories, the easiest way to do it is<br></div>building it through dunecontrol with the same --builddir=... flag set as when you<br></div>build the original set of modules.<br><br></div>Another way, if you need to mix and match is what you describe later in the context<br></div>of installation: Explicitly stating the build directories through -Ddune-foo_DIR=...<br></div>Note that you need to pass the root of the build directories there (not say, the lib<br></div>subdir etc.)<br><br></div>This is from the top of my head, without trying, but I have similar workflows, that<br></div>work nice for me.<br><br></div>Best,<br></div>Dominic<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 20, 2018 at 2:57 PM, Simon Praetorius <span dir="ltr"><<a href="mailto:simon.praetorius@tu-dresden.de" target="_blank">simon.praetorius@tu-dresden.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
<br>
when I build the dune modules, I can use two different build locations: 1. default is a subdirectory `build-cmake` in each module source directory, 2. passing a `--builddir=BUILD_DIR` flag to dunecontrol with an absolute path BUILD_DIR, all modules are build in ${BUILD_DIR}/dune-xxx<br>
<br>
How can I use these build dune-modules in my own project? When I call<br>
<br>
> DUNE_CONTROL_PATH=${BUILD_DIR} dunecontrol --current all<br>
<br>
in my own dune project directory, it fails since dunecontrol can not find the `dune.module` files in the ${BUILD_DIR}/dune-xxx subdirectories that are necessary for determining the module dependencies. These files are simply not copied in the build directories.<br>
<br>
Alternatively, I have installed all dune modules in a common location:<br>
<br>
> CMAKE_FLAGS="-DCMAKE_INSTALL_P<wbr>REFIX:PATH=${INSTALL_DIR}" dunecontrol --builddir=${BUILD_DIR} all<br>
> CMAKE_FLAGS="-DCMAKE_INSTALL_P<wbr>REFIX:PATH=${INSTALL_DIR}" dunecontrol --builddir=${BUILD_DIR} make install<br>
<br>
How can I use these installed dune-modules in my own project? When I call<br>
<br>
> DUNE_CONTROL_PATH=${INSTALL_DI<wbr>R} dunecontrol --current all<br>
<br>
in my own dune project directory, it fails since all package directories necessary for cmake are set in a wrong way, i.e. it calls cmake with the parameters<br>
<br>
> -Ddune-common_DIR=${INSTALL_DI<wbr>R}/lib/dunecontrol/dune-common -Ddune-geometry_DIR=...<br>
<br>
But in `.../lib/dunecontrol/dune-comm<wbr>on` there is no `dune-common-config.cmake` file. This file is located in `${INSTALL_DIR}/lib64/cmake/du<wbr>ne-xxx` and some others in `${INSTALL_DIR}/lib/cmake/dune<wbr>-xxx`<br>
<br>
What have I done wrong?<br>
<br>
Best regards,<br>
Simon<br>
<br>
<br>
______________________________<wbr>_________________<br>
Dune mailing list<br>
<a href="mailto:Dune@lists.dune-project.org" target="_blank">Dune@lists.dune-project.org</a><br>
<a href="http://lists.dune-project.org/mailman/listinfo/dune" rel="noreferrer" target="_blank">http://lists.dune-project.org/<wbr>mailman/listinfo/dune</a></blockquote></div><br></div>