Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cmake: use options DSL

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
commit e87a6f7bc02d9b2a4edf731ae90de6213382e480 1 parent 3c8ed1a
@jacknagel jacknagel authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 Library/Formula/cmake.rb
View
6 Library/Formula/cmake.rb
@@ -30,9 +30,7 @@ class Cmake < Formula
depends_on NoExpatFramework.new
- def options
- [["--enable-ninja", "Enable Ninja build system support"]]
- end
+ option 'enable-ninja', 'Enable Ninja build system support'
def patches
[
@@ -56,7 +54,7 @@ def install
--mandir=/share/man
]
- if ARGV.include? "--enable-ninja"
+ if build.include? "enable-ninja"
args << "--"
args << "-DCMAKE_ENABLE_NINJA=1"
end
Please sign in to comment.
Something went wrong with that request. Please try again.