Skip to content

Commit

Permalink
cmake: fix for 10.12
Browse files Browse the repository at this point in the history
Closes #19372.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
  • Loading branch information
fxcoudert committed Oct 12, 2017
1 parent f53c522 commit dfd70ac
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Formula/cmake.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
class Cmake < Formula
desc "Cross-platform make"
homepage "https://www.cmake.org/"
url "https://cmake.org/files/v3.9/cmake-3.9.4.tar.gz"
sha256 "b5d86f12ae0072db520fdbdad67405f799eb728b610ed66043c20a92b4906ca1"
head "https://cmake.org/cmake.git"

stable do
url "https://cmake.org/files/v3.9/cmake-3.9.4.tar.gz"
sha256 "b5d86f12ae0072db520fdbdad67405f799eb728b610ed66043c20a92b4906ca1"

# The two patches below fix cmake for undefined symbols check on macOS 10.12
# They can be removed for cmake >= 3.10
patch do
url "https://gitlab.kitware.com/cmake/cmake/commit/96329d5dffdd5a22c5b4428119b5d3762a8857a7.diff"
sha256 "c394d1b6e59e9bcf8e5db8a0a1189203e056c230a22aa8d60079fea7be6026bd"
end

patch do
url "https://gitlab.kitware.com/cmake/cmake/commit/f1a4ecdc0c62b46c90df5e8d20e6f61d06063894.diff"
sha256 "d32fa9c342d88e53b009f1fbeecc5872a79eec4bf2c8399f0fc2eeda5b0a4f1e"
end
end

bottle do
cellar :any_skip_relocation
sha256 "bef13423dca0f53a4398e96607521d3ab15738fc39b70d979f00c2a94d1e9a22" => :high_sierra
Expand Down

0 comments on commit dfd70ac

Please sign in to comment.