diff options
| author | Xiyue Deng | 2013-10-12 03:57:08 -0700 |
|---|---|---|
| committer | Xiyue Deng | 2013-10-27 06:01:21 -0700 |
| commit | 5b24d98125ac07f28299457a044b50423f16c264 (patch) | |
| tree | ac57f3e0d06fa39ae8f1776062038be773d7f622 /Library/Formula/yaml-cpp.rb | |
| parent | 8e804a335f94a7f8d84377533865589fafddd73a (diff) | |
| download | homebrew-5b24d98125ac07f28299457a044b50423f16c264.tar.bz2 | |
yaml-cpp: support C++11 mode.
* Requires dependencies built with C++11 when requesting C++11 mode.
Closes #16162.
Diffstat (limited to 'Library/Formula/yaml-cpp.rb')
| -rw-r--r-- | Library/Formula/yaml-cpp.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Library/Formula/yaml-cpp.rb b/Library/Formula/yaml-cpp.rb index d3aae5452..4431b0343 100644 --- a/Library/Formula/yaml-cpp.rb +++ b/Library/Formula/yaml-cpp.rb @@ -5,10 +5,19 @@ class YamlCpp < Formula url 'http://yaml-cpp.googlecode.com/files/yaml-cpp-0.5.1.tar.gz' sha1 '9c5414b4090491e96d1b808fe8628b31e625fdaa' + option :cxx11 + depends_on 'cmake' => :build - depends_on 'boost' + + if build.cxx11? + depends_on 'boost' => 'c++11' + else + depends_on 'boost' + end def install + ENV.cxx11 if build.cxx11? + system "cmake", ".", *std_cmake_args system "make install" end |
