aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2010-12-26 13:29:01 -0800
committerAdam Vandenberg2010-12-26 13:29:01 -0800
commit22e34998afc6842adea456e5c2e27c59ef0938ef (patch)
treeee523e8d3c816d48142fb63569ba6c02993dfc77 /Library/Formula
parente02e45acd4fffed945fd43d2efdabb50cac52545 (diff)
downloadhomebrew-22e34998afc6842adea456e5c2e27c59ef0938ef.tar.bz2
Cmake - look for expat framework and warn
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cmake.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/cmake.rb b/Library/Formula/cmake.rb
index a58c8dcd5..c5e94022f 100644
--- a/Library/Formula/cmake.rb
+++ b/Library/Formula/cmake.rb
@@ -6,6 +6,16 @@ class Cmake <Formula
homepage 'http://www.cmake.org/'
def install
+ # A framework-installed expat will be detected and mess things up.
+ if File.exist? "/Library/Frameworks/expat.framework"
+ opoo "/Library/Frameworks/expat.framework detected"
+ puts <<-EOS.undent
+ This will be picked up by Cmake's build system and likey cause the
+ build to fail, trying to link to a 32-bit version of expat.
+ You may need to move this file out of the way for this brew to work.
+ EOS
+ end
+
# If we specify to CMake to use the system libraries by passing
# --system-libs to bootstrap then it insists on finding them all
# or erroring out, as that's what other Linux/OSX distributions