aboutsummaryrefslogtreecommitdiff
path: root/odb/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'odb/buildfile')
-rw-r--r--odb/buildfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/odb/buildfile b/odb/buildfile
index 7bbf495..aae2bf9 100644
--- a/odb/buildfile
+++ b/odb/buildfile
@@ -92,6 +92,14 @@ details/shared-ptr/{hxx }{ counter-type } \
details/shared-ptr/{hxx }{ exception } \
details/win32/{hxx }{ windows }
+# For pre-releases use the complete version to make sure they cannot be used
+# in place of another pre-release or the final version.
+#
+if $abi_prerelease
+ lib{odb}: bin.lib.version = @-$version
+else
+ lib{odb}: bin.lib.version = @-$abi_major.$abi_minor
+
cxx.poptions =+ -I$src_root -DLIBODB_BUILD2
obja{*}: cxx.poptions += -DLIBODB_STATIC_BUILD
objs{*}: cxx.poptions += -DLIBODB_SHARED_BUILD