From 47b602775e442c5a52e5bcfec8015506dfa71be8 Mon Sep 17 00:00:00 2001 From: Xiyue Deng Date: Wed, 9 Oct 2013 03:09:40 -0700 Subject: poco: support C++11 mode. Closes #17750. --- Library/Formula/poco.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3