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>
This commit is contained in:
Charlie Sharpsteen 2012-05-29 15:54:29 -07:00
parent 5c4dca3e00
commit 6191fdf96d

View file

@ -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