Skip to content

Commit

Permalink
Setting the cmake build type Release in its setup-hook, for all cmake
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Lluís Batlle i Rossell committed Feb 26, 2012
1 parent 584ccab commit 183d05a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/development/tools/build-managers/cmake/setup-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}"

Expand Down

0 comments on commit 183d05a

Please sign in to comment.