3
0
Fork 0
forked from mirrors/nixpkgs

cmake setup hook: allow other build types

This commit is contained in:
Linus Heckemann 2017-05-10 14:31:54 +01:00
parent 8b01ec9a9e
commit 28154f45a6

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[@]}"