Skip to content

Commit

Permalink
gz-math*: fix default argument to python_cmake_arg (#2904)
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters authored Dec 2, 2024
1 parent 1ce12be commit d1eca7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Formula/gz-math7.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def pythons
.select { |f| f.name.match?(/^python@3\.\d+$/) }
end

def python_cmake_arg(python = "[email protected]".to_formula)
def python_cmake_arg(python = Formula["[email protected]"])
"-DPython3_EXECUTABLE=#{python.opt_libexec}/bin/python"
end

Expand Down
2 changes: 1 addition & 1 deletion Formula/gz-math8.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def pythons
.select { |f| f.name.match?(/^python@3\.\d+$/) }
end

def python_cmake_arg(python = "[email protected]".to_formula)
def python_cmake_arg(python = Formula["[email protected]"])
"-DPython3_EXECUTABLE=#{python.opt_libexec}/bin/python"
end

Expand Down

0 comments on commit d1eca7a

Please sign in to comment.