Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

Commit

Permalink
Formula: Reorder CMake flags. #78
Browse files Browse the repository at this point in the history
CMAKE_BUILD_TYPE=RelWithDebInfo must come at the end to take effect,
as std_cmake_args contains CMAKE_BUILD_TYPE=Release.
Change the order while retaining Ruby 1.8 compatibility.
  • Loading branch information
fwalch committed Jul 26, 2015
1 parent b2a8000 commit 2212862
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Formula/neovim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ def install

mkdir "build" do
ohai "Building Neovim."
system "cmake", "..",
"-DDEPS_PREFIX=../deps-build/usr",
"-DCMAKE_BUILD_TYPE=RelWithDebInfo",
*std_cmake_args
cmake_args = std_cmake_args + ["-DDEPS_PREFIX=../deps-build/usr",
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"]
system "cmake", "..", *cmake_args
system "make", "VERBOSE=1", "install"
end
end
Expand Down

0 comments on commit 2212862

Please sign in to comment.