Skip to content
Snippets Groups Projects
Commit 267c14d9 authored by Steffen Müthing's avatar Steffen Müthing
Browse files

Export root of absolute build directory tree to CMake

parent 63b46abe
Branches
Tags
1 merge request!542Export root of absolute build directory tree to CMake
Pipeline #10329 passed
# Master (will become release 2.7)
- When run with an absolute build directory, `dunecontrol` now exposes the root build
directory to CMake in the variable `DUNE_BUILD_DIRECTORY_ROOT_PATH`.
See core/dune-common!542
# Release 2.6
**This release is dedicated to Elias Pipping (1986-2017).**
......
......@@ -622,6 +622,12 @@ run_default_update () {
run_default_configure () {
extract_multiarch
# tell CMake about the build directory root when we are using an absolute build directory
if [[ ${BUILDDIR} = /* ]] ; then
CMAKE_PARAMS="$CMAKE_PARAMS -DDUNE_BUILD_DIRECTORY_ROOT_PATH='${BUILDDIR}'"
fi
# add arguments given as configure-opts to CMAKE_params
CMAKE_PARAMS="$CMAKE_PARAMS $CMD_FLAGS"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment