Skip to content

Commit

Permalink
quantlib: add C++11 support.
Browse files Browse the repository at this point in the history
Although QuantLib does not have any special features/support for C++11,
it is still useful for developers/administrators who need to link
against libc++ and to combine QuantLib with other C++11 applications and
libraries.

Also be sure to depend on boost with c++11 to ensure that QuantLib and
boost share the same standard library.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
  • Loading branch information
kevinoid authored and MikeMcQuaid committed Mar 27, 2014
1 parent 70762e9 commit a9260ab
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Formula/quantlib.rb
Expand Up @@ -5,9 +5,16 @@ class Quantlib < Formula
url 'https://downloads.sourceforge.net/project/quantlib/QuantLib/1.4/QuantLib-1.4.tar.gz'
sha1 'f31f4651011a8e38e8b2cc6c457760fe61863391'

depends_on 'boost'
option :cxx11

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

def install
ENV.cxx11 if build.cxx11?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
Expand Down

0 comments on commit a9260ab

Please sign in to comment.