From dfd70acac1ac14da1e767fa9dcf73208d31fd7d3 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Thu, 12 Oct 2017 14:46:37 +0200 Subject: [PATCH] cmake: fix for 10.12 Closes #19372. Signed-off-by: FX Coudert --- Formula/cmake.rb | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Formula/cmake.rb b/Formula/cmake.rb index c296e7e90d..8c67db2bea 100644 --- a/Formula/cmake.rb +++ b/Formula/cmake.rb @@ -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