Setting the cmake build type Release in its setup-hook, for all cmake

projects to be built in Release by default.

Some packages were not getting optimisation flags, like rigsofrods.


svn path=/nixpkgs/branches/stdenv-updates/; revision=32574
This commit is contained in:
Lluís Batlle i Rossell 2012-02-26 11:27:45 +00:00
parent 584ccabaac
commit 183d05a0d7

View File

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