Introduce std_cmake_args method
This differs from the current std_cmake_parameters in that it returns an array instead of a string. Doing so makes dealing with it in formulae much more pleasant, and for new formula hackers, less surprising. std_cmake_parameters is retained in compat to maintain compatibility with external formulae. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
4dfa2806b9
commit
a13857b150
@ -87,6 +87,10 @@ class Formula
|
||||
@cc_failures ||= CompilerFailures.new
|
||||
@cc_failures << fails_with_llvm_reason
|
||||
end
|
||||
|
||||
def std_cmake_parameters
|
||||
"-DCMAKE_INSTALL_PREFIX='#{prefix}' -DCMAKE_BUILD_TYPE=None -Wno-dev"
|
||||
end
|
||||
end
|
||||
|
||||
class UnidentifiedFormula < Formula
|
||||
|
@ -239,8 +239,8 @@ class Formula
|
||||
# Setting it to Release would ignore our flags.
|
||||
# Note: there isn't a std_autotools variant because autotools is a lot
|
||||
# less consistent and the standard parameters are more memorable.
|
||||
def std_cmake_parameters
|
||||
"-DCMAKE_INSTALL_PREFIX='#{prefix}' -DCMAKE_BUILD_TYPE=None -Wno-dev"
|
||||
def std_cmake_args
|
||||
%W[-DCMAKE_INSTALL_PREFIX=#{prefix} -DCMAKE_BUILD_TYPE=None -Wno-dev]
|
||||
end
|
||||
|
||||
def self.class_s name
|
||||
|
Loading…
x
Reference in New Issue
Block a user