forked from mirrors/nixpkgs
cmake setup hook: allow other build types
This commit is contained in:
parent
8b01ec9a9e
commit
28154f45a6
|
@ -49,7 +49,7 @@ cmakeConfigurePhase() {
|
||||||
|
|
||||||
# Avoid cmake resetting the rpath of binaries, on make install
|
# Avoid cmake resetting the rpath of binaries, on make install
|
||||||
# And build always Release, to ensure optimisation flags
|
# 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[@]}"
|
echo "cmake flags: $cmakeFlags ${cmakeFlagsArray[@]}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue