aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/Makefile.am4
-rw-r--r--template/template-vc10.vcxproj2
2 files changed, 5 insertions, 1 deletions
diff --git a/template/Makefile.am b/template/Makefile.am
index d59aa5b..f39fbad 100644
--- a/template/Makefile.am
+++ b/template/Makefile.am
@@ -42,5 +42,9 @@ ODB = @ODB@
ODBFLAGS = @ODBFLAGS@
ODBCPPFLAGS = @ODBCPPFLAGS@
+if HAVE_CXX11
+ODBFLAGS += --std c++11
+endif
+
__path__(odb_header_stem)-odb.hxx: __path__(odb_header_stem).hxx
$(ODB) $(ODBCPPFLAGS) $(CPPFLAGS) $(ODBFLAGS) __value__(odb_options) $<
diff --git a/template/template-vc10.vcxproj b/template/template-vc10.vcxproj
index 817b728..c595f1b 100644
--- a/template/template-vc10.vcxproj
+++ b/template/template-vc10.vcxproj
@@ -154,7 +154,7 @@
__custom_build_entry__(
__path__(odb_header_stem).hxx,
odb __path__(odb_header_stem).hxx,
-odb.exe __xml__(__shell_quotes__(m4_patsubst(__value__(odb_options), @database@, __value__(database)))) __path__(odb_header_stem).hxx,
+odb.exe --std c++11 __xml__(__shell_quotes__(m4_patsubst(__value__(odb_options), @database@, __value__(database)))) __path__(odb_header_stem).hxx,
__path__(odb_header_stem)-odb.hxx;__path__(odb_header_stem)-odb.ixx;__path__(odb_header_stem)-odb.cxx)
</ItemGroup>
<ItemGroup>