aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/in/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/in/buildfile')
-rw-r--r--libbuild2/in/buildfile13
1 files changed, 9 insertions, 4 deletions
diff --git a/libbuild2/in/buildfile b/libbuild2/in/buildfile
index ae07e27..aa5af87 100644
--- a/libbuild2/in/buildfile
+++ b/libbuild2/in/buildfile
@@ -47,10 +47,15 @@ libs{build2-in}: cxx.export.poptions += -DLIBBUILD2_IN_SHARED
# in place of another pre-release or the final version. See the version module
# for details on the version.* variable values.
#
-if $version.pre_release
- lib{build2-in}: bin.lib.version = @"-$version.project_id"
-else
- lib{build2-in}: bin.lib.version = @"-$version.major.$version.minor"
+# And seeing that this is a build system module, we also embed the same
+# version as the build system core version.
+#
+ver = ($version.pre_release \
+ ? "$version.project_id" \
+ : "$version.major.$version.minor")
+
+lib{build2-in}: bin.lib.version = @"-$ver"
+libs{build2-in}: bin.lib.load_suffix = "-$ver"
# Install into the libbuild2/in/ subdirectory of, say, /usr/include/
# recreating subdirectories.