aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cmake.rb
diff options
context:
space:
mode:
authorCharlie Sharpsteen2012-05-29 15:54:29 -0700
committerCharlie Sharpsteen2012-06-03 10:03:56 -0700
commit1ddde741675ee16d1c9f6e93d7b5de9b51cbb16d (patch)
treef4630fea1e06f4be3eb515b22b31faa54ebc10bb /Library/Formula/cmake.rb
parent084e761f6abb5d9a9102767985dd5b1a54330b2b (diff)
downloadhomebrew-1ddde741675ee16d1c9f6e93d7b5de9b51cbb16d.tar.bz2
CMake: Patch defaults for using Frameworks
This patch makes it possible to use `-DCMAKE_FIND_FRAMEWORK` to override CMake default of giving priority to Frameworks when satisfying dependencies. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula/cmake.rb')
-rw-r--r--Library/Formula/cmake.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Formula/cmake.rb b/Library/Formula/cmake.rb
index a2135e5ab..cff69a1fa 100644
--- a/Library/Formula/cmake.rb
+++ b/Library/Formula/cmake.rb
@@ -29,9 +29,14 @@ class Cmake < Formula
depends_on NoExpatFramework.new
- # Correct FindPkgConfig found variable. Remove for CMake 2.8.9.
def patches
- "https://github.com/Kitware/CMake/commit/3ea850.patch"
+ [
+ # Correct FindPkgConfig found variable. Remove for CMake 2.8.9.
+ "https://github.com/Kitware/CMake/commit/3ea850.patch",
+ # Protect the default value of CMAKE_FIND_FRAMEWORK so that it can be
+ # overridden from the command line. Remove for CMake 2.8.9.
+ "https://github.com/Kitware/CMake/commit/8b2fb3.patch"
+ ]
end
def install