diff options
| author | Xin Sun | 2014-01-07 16:52:59 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-07 10:55:07 +0000 |
| commit | 883ffd4364ef6f84cc4dfa10ba21436d03481cd9 (patch) | |
| tree | 99ade311680c0c4a4aa8c0c2faf6ecfa9b6913eb | |
| parent | 82eeeb43714474e2791b9f5d04c6a2fcbb094dc3 (diff) | |
| download | homebrew-883ffd4364ef6f84cc4dfa10ba21436d03481cd9.tar.bz2 | |
cgal: add c++11 option
Closes #25379.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/cgal.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Library/Formula/cgal.rb b/Library/Formula/cgal.rb index 71151b924..234499258 100644 --- a/Library/Formula/cgal.rb +++ b/Library/Formula/cgal.rb @@ -5,19 +5,27 @@ class Cgal < Formula url 'https://gforge.inria.fr/frs/download.php/32994/CGAL-4.3.tar.gz' sha1 '035d5fd7657e9eeccfc46ff0ebf84f137e63b03a' + option :cxx11 + option 'imaging', "Build ImageIO and QT compoments of CGAL" option 'with-eigen3', "Build with Eigen3 support" option 'with-lapack', "Build with LAPACK support" depends_on 'cmake' => :build - depends_on 'boost' - depends_on 'gmp' + if build.cxx11? + depends_on 'boost' => 'c++11' + depends_on 'gmp' => 'c++11' + else + depends_on 'boost' + depends_on 'gmp' + end depends_on 'mpfr' depends_on 'qt' if build.include? 'imaging' depends_on 'eigen' if build.include? 'with-eigen3' def install + ENV.cxx11 if build.cxx11? args = ["-DCMAKE_INSTALL_PREFIX=#{prefix}", "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON", |
