diff options
| author | ruki <[email protected]> | 2015-12-05 23:29:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-12-05 23:29:53 +0800 |
| commit | 55baf72274c1aeefceb125f49a4da77e1d49bf40 (patch) | |
| tree | 47c62985a6f4b535984d1fd58fc152610cd90364 /xmake/scripts/base/rule.lua | |
| parent | 82fc443c84a02c7cf19248c5f9a70ef9f3a2032f (diff) | |
add warning for matching files
Diffstat (limited to 'xmake/scripts/base/rule.lua')
| -rw-r--r-- | xmake/scripts/base/rule.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/scripts/base/rule.lua b/xmake/scripts/base/rule.lua index d4f15a456..e165c6533 100644 --- a/xmake/scripts/base/rule.lua +++ b/xmake/scripts/base/rule.lua @@ -208,6 +208,9 @@ function rule.sourcefiles(target) -- match source files local files = os.match(targetfile) + if #files == 0 then + utils.warning("cannot match add_files(\"%s\")", targetfile) + end -- process source files for _, file in ipairs(files) do |
