diff options
| author | ruki <[email protected]> | 2023-02-03 00:51:23 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-03 00:51:23 +0800 |
| commit | b005057d44cf03a29613d7d1881517e59acacae1 (patch) | |
| tree | 61af7f46fe18bcc1d01e24bc317283aa65ba9098 /xmake/rules/utils | |
| parent | 743399e488b2371511235bde557daeeedcd653ce (diff) | |
improve tips
Diffstat (limited to 'xmake/rules/utils')
| -rw-r--r-- | xmake/rules/utils/check_targets/check_targets.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/utils/check_targets/check_targets.lua b/xmake/rules/utils/check_targets/check_targets.lua index 17610a29e..a5073cfa0 100644 --- a/xmake/rules/utils/check_targets/check_targets.lua +++ b/xmake/rules/utils/check_targets/check_targets.lua @@ -31,8 +31,8 @@ function main(target) for _, name in ipairs({"includedirs", "frameworkdirs", "linkdirs"}) do for _, value in ipairs(_get_values_from_target(target, name)) do if not os.isdir(value) then - local sourceinfo = (target:get("__sourceinfo_" .. name) or {})[value] or {} - wprint("%s(%s).add_%s(\"%s\") path not found at %s:%d", target:type(), target:name(), name, value, sourceinfo.file or "", sourceinfo.line or -1) + local sourceinfo = target:sourceinfo(name, value) or {} + wprint("%s:%d: %s '%s' not found in %s(%s)", sourceinfo.file or "", sourceinfo.line or -1, name, value, target:type(), target:name()) end end end |
