Fix install clause

This commit is contained in:
Charles Karney 2014-08-16 18:25:04 -04:00 committed by Mike McQuaid
parent e052270433
commit b091a0e4c2

View file

@ -7,12 +7,10 @@ class Geographiclib < Formula
depends_on "cmake" => :build
def install
# GeographicLib makes a Release build if CMAKE_BUILD_TYPE isn't set.
args = std_cmake_args - %w{-DCMAKE_BUILD_TYPE=None}
mkdir 'build'
chdir 'build' do
system 'cmake', *args, '..'
system 'make install'
mkdir "build"
chdir "build" do
system "cmake", "..", *std_cmake_args
system "make", "install"
end
end