summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-15 18:25:37 +0800
committerruki <[email protected]>2017-03-15 18:25:37 +0800
commitac990329138fc0aa054f5da173b34bf29daa450b (patch)
treed43585215629098c9d181e4727e56b9559058fc9
parentbe0535a48070ab2a8f11caf2f034e55262a6b448 (diff)
fix make config header bug
-rwxr-xr-xxmake/actions/config/configheader.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/config/configheader.lua b/xmake/actions/config/configheader.lua
index d5f29e859..ec3a9e5ca 100755
--- a/xmake/actions/config/configheader.lua
+++ b/xmake/actions/config/configheader.lua
@@ -47,7 +47,7 @@ function _make_for_target(files, target)
file:print("")
-- make version
- local version = target:get("version")
+ local version = project.version()
if version then
file:print("// version")
file:print("#define %s_VERSION \"%s\"", prefix, version)