Skip to content
Snippets Groups Projects
Commit 88e09314 authored by Markus Frosch's avatar Markus Frosch
Browse files

Add explicit CCACHE_BASEDIR during %build

parent 4f0716bd
No related branches found
No related tags found
No related merge requests found
......@@ -285,6 +285,10 @@ find . -type f -name '*.sh' -exec sed -i -e 's|\/usr\/bin\/env bash|\/bin\/bash|
%endif
%build
# set basedir to allow cache to hit between different builds
# this will make all paths below BUILD/icinga2-x.x.x relative for cache
export CCACHE_BASEDIR="${CCACHE_BASEDIR:-$(pwd)}"
CMAKE_OPTS="-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment