forked from mirrors/nixpkgs
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:
parent
584ccabaac
commit
183d05a0d7
|
@ -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[@]}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue