Merge pull request #25675 from lheckemann/cmake-build-type

cmake setup hook: allow other build types
This commit is contained in:
Michael Raskin 2017-05-10 17:29:31 +02:00 committed by GitHub
commit fc873b69f0

View File

@ -49,7 +49,7 @@ cmakeConfigurePhase() {
# Avoid cmake resetting the rpath of binaries, on make install
# And build always Release, to ensure optimisation flags
cmakeFlags="-DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON $cmakeFlags"
cmakeFlags="-DCMAKE_BUILD_TYPE=${cmakeBuildType:-Release} -DCMAKE_SKIP_BUILD_RPATH=ON $cmakeFlags"
echo "cmake flags: $cmakeFlags ${cmakeFlagsArray[@]}"