Skip to content

Commit 122de5d

Browse files
committed
Opencascade 7.x requires c++11
* Default to building with opencascade * When building with opencascade, set c++11 Refs #30
1 parent 09bef44 commit 122de5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nglib.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Nglib < Formula
1515
end
1616

1717
# These two conflict with each other, so we'll have at most one.
18-
depends_on "opencascade" => :optional
18+
depends_on "opencascade" => :recommended
1919
depends_on "oce" => :optional
2020

2121
# Fixes two issues.
@@ -24,6 +24,7 @@ class Nglib < Formula
2424
patch :DATA
2525

2626
def install
27+
ENV.cxx11 if build.with? "opencascade"
2728
args = %W[
2829
--disable-dependency-tracking
2930
--prefix=#{prefix}

0 commit comments

Comments
 (0)