Permalink
Browse files

cmake: add grep_options check in formula

  • Loading branch information...
1 parent 335e5d9 commit 5f8c7f75eab6b0469473f1d4a5799c3f89f04657 @adamv adamv committed Apr 8, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 Library/Formula/cmake.rb
View
@@ -16,6 +16,14 @@ def install
EOS
end
+ if ENV['GREP_OPTIONS'] == "--color=always"
+ opoo "GREP_OPTIONS is set to '--color=always'"
+ puts <<-EOS.undent
+ Having `GREP_OPTIONS` set this way causes Cmake builds to fail.
+ You will need to `unset GREP_OPTIONS` before brewing.
+ EOS
+ end
+
system "./bootstrap", "--prefix=#{prefix}",
"--system-libs",
"--no-system-libarchive",

0 comments on commit 5f8c7f7

Please sign in to comment.