aboutsummaryrefslogtreecommitdiff
path: root/zencore
diff options
context:
space:
mode:
Diffstat (limited to 'zencore')
-rw-r--r--zencore/xmake.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/zencore/xmake.lua b/zencore/xmake.lua
index 1e7a06080..3f78be99c 100644
--- a/zencore/xmake.lua
+++ b/zencore/xmake.lua
@@ -4,11 +4,9 @@ target('zencore')
set_kind("static")
add_headerfiles("**.h")
add_configfiles("include/zencore/config.h.in")
- add_configfiles("VERSION.txt", {onlycopy = true})
on_load(function (target)
local version = io.readfile("VERSION.txt")
- version = version:match'^%s*v(.*%S)' or ''
- target:set("version", version, { build = "%Y%m%d%H%M" })
+ target:set("version", version:trim(), {build = "%Y%m%d%H%M"})
end)
set_configdir("include/zencore")
add_files("**.cpp")