Navigation Menu

Skip to content

Commit

Permalink
cgal: remove C++11 option
Browse files Browse the repository at this point in the history
  • Loading branch information
fxcoudert committed Dec 15, 2017
1 parent 0b6dd94 commit 0c72151
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions Formula/cgal.rb
Expand Up @@ -11,33 +11,23 @@ class Cgal < Formula
sha256 "13e8723280f9b2de2a1d348cbe07f814dc3ea44e466b14781755552db9ac13c2" => :el_capitan
end

option :cxx11
option "with-qt", "Build ImageIO and Qt components of CGAL"
option "with-eigen", "Build with Eigen3 support"
option "with-lapack", "Build with LAPACK support"
option "with-qt", "Build ImageIO and Qt components of CGAL"

deprecated_option "imaging" => "with-qt"
deprecated_option "with-imaging" => "with-qt"
deprecated_option "with-eigen3" => "with-eigen"
deprecated_option "with-qt5" => "with-qt"

depends_on "cmake" => :build
depends_on "boost"
depends_on "gmp"
depends_on "mpfr"

depends_on "qt" => :optional
depends_on "eigen" => :optional

if build.cxx11?
depends_on "boost" => "c++11"
depends_on "gmp" => "c++11"
else
depends_on "boost"
depends_on "gmp"
end

def install
ENV.cxx11 if build.cxx11?

args = std_cmake_args + %W[
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
-DCMAKE_INSTALL_NAME_DIR=#{HOMEBREW_PREFIX}/lib
Expand Down

0 comments on commit 0c72151

Please sign in to comment.