Skip to content

Commit ec31609

Browse files
committed
Add -std=c++11 CXXFLAGS (like pyobjcryst)
1 parent e2fc121 commit ec31609

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: SConstruct

+5
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ vars.Add(BoolVariable(
110110
vars.Add(BoolVariable(
111111
'with_shared_cctbx',
112112
'compile and link with the shared cctbx library', False))
113+
114+
# Specify minimum C++ standard. Allow later standard from sconscript.local.
115+
# In case of multiple `-std` options the last option holds.
116+
env.PrependUnique(CXXFLAGS='-std=c++11', delete_existing=1)
117+
113118
vars.Update(env)
114119
env.Help(MY_SCONS_HELP % vars.GenerateHelpText(env))
115120

0 commit comments

Comments
 (0)