diff options
Diffstat (limited to 'Library')
| -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", |
