From ac990329138fc0aa054f5da173b34bf29daa450b Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 15 Mar 2017 18:25:37 +0800 Subject: fix make config header bug --- xmake/actions/config/configheader.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.3.1