From 883ffd4364ef6f84cc4dfa10ba21436d03481cd9 Mon Sep 17 00:00:00 2001 From: Xin Sun Date: Tue, 7 Jan 2014 16:52:59 +0800 Subject: cgal: add c++11 option Closes #25379. Signed-off-by: Mike McQuaid --- Library/Formula/cgal.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Library') 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", -- cgit v1.2.3