mxcl/homebrew — pull request #12497 by Sharpie (2012-05-30 00:15:16+00:00)
Title: CMake: Give libraries priority over Frameworks when satisfying dependencies

This pull request needs testers and adds two things:

- A patch to CMake that makes it possible to override the default priority given to Frameworks from the command line. Currently, any command line argument is overruled by the default settings. Upstream has indicated they will accept this patch if it causes no significant problems.

- An addition of `-DCMAKE_FIND_FRAMEWORK=LAST` to `std_cmake_args` and `std_cmake_parameters` this will cause CMake to fill dependencies using libraries before satisfying them with Frameworks. Hopefully this change will solve problems caused by things such as 32 bit Mono Frameworks as discussed in #11030.

When testing this patch, remember to tell Homebrew to build from source instead of using the bottled version of CMake:

brew install cmake --build-from-source