diff options
| author | ruki <[email protected]> | 2017-03-15 18:25:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-03-15 18:25:37 +0800 |
| commit | ac990329138fc0aa054f5da173b34bf29daa450b (patch) | |
| tree | d43585215629098c9d181e4727e56b9559058fc9 | |
| parent | be0535a48070ab2a8f11caf2f034e55262a6b448 (diff) | |
fix make config header bug
| -rwxr-xr-x | xmake/actions/config/configheader.lua | 2 |
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) |
