diff options
| author | Xiyue Deng | 2013-10-09 03:09:40 -0700 |
|---|---|---|
| committer | Xiyue Deng | 2013-10-27 06:01:01 -0700 |
| commit | 47b602775e442c5a52e5bcfec8015506dfa71be8 (patch) | |
| tree | 87e3e61314352c800e92694acbd1d24838d05fe9 /Library/Formula/poco.rb | |
| parent | 23b1c7ed2a37c53dcca2ce500b7332bed5e3cd98 (diff) | |
| download | homebrew-47b602775e442c5a52e5bcfec8015506dfa71be8.tar.bz2 | |
poco: support C++11 mode.
Closes #17750.
Diffstat (limited to 'Library/Formula/poco.rb')
| -rw-r--r-- | Library/Formula/poco.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/poco.rb b/Library/Formula/poco.rb index 1bf90018c..6cf2dcb48 100644 --- a/Library/Formula/poco.rb +++ b/Library/Formula/poco.rb @@ -11,7 +11,11 @@ class Poco < Formula sha1 '2eaa44deb853a6f7ba7d9e4726a365ae45006ef1' end + option :cxx11 + def install + ENV.cxx11 if build.cxx11? + arch = Hardware.is_64_bit? ? 'Darwin64': 'Darwin32' arch << '-clang' if ENV.compiler == :clang @@ -20,6 +24,6 @@ class Poco < Formula "--omit=Data/MySQL,Data/ODBC", "--no-samples", "--no-tests" - system "make install CC=#{ENV.cc} CXX=#{ENV.cxx}" + system "make", "install", "CC=#{ENV.cc}", "CXX=#{ENV.cxx}" end end |
