aboutsummaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-08-31 19:23:32 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-08-31 19:23:32 +0300
commit5f3c97306cda519e7edf41142ee903d22320c84a (patch)
tree93b530e4e5f8fd80d24326ea0521a47eaabe7581 /odb
parentc711529fc2e807051af031ae7a26d3c293ff8ca7 (diff)
Build infrastructure update
Diffstat (limited to 'odb')
-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