From 221286206c66abcdde9ee50fd6603d971941573a Mon Sep 17 00:00:00 2001 From: Florian Walch Date: Sat, 25 Jul 2015 12:57:31 +0300 Subject: [PATCH] Formula: Reorder CMake flags. #78 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. --- Formula/neovim.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Formula/neovim.rb b/Formula/neovim.rb index 3efbee3..5c551e7 100644 --- a/Formula/neovim.rb +++ b/Formula/neovim.rb @@ -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