diff options
Diffstat (limited to 'Library/Formula/cmake.rb')
| -rw-r--r-- | Library/Formula/cmake.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/cmake.rb b/Library/Formula/cmake.rb index db19d0b72..3688f8e23 100644 --- a/Library/Formula/cmake.rb +++ b/Library/Formula/cmake.rb @@ -1,6 +1,10 @@ require 'formula' class NoExpatFramework < Requirement + satisfy :build_env => false do + not File.exist? "/Library/Frameworks/expat.framework" + end + def message; <<-EOS.undent Detected /Library/Frameworks/expat.framework @@ -10,9 +14,6 @@ class NoExpatFramework < Requirement You may need to move this file out of the way to compile CMake. EOS end - def satisfied? - not File.exist? "/Library/Frameworks/expat.framework" - end end |
