summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/plugins/show/info/target.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/show/info/target.lua b/xmake/plugins/show/info/target.lua
index 871ed321a..6eb342e9a 100644
--- a/xmake/plugins/show/info/target.lua
+++ b/xmake/plugins/show/info/target.lua
@@ -22,8 +22,8 @@
import("core.base.option")
import("core.base.hashset")
import("core.project.config")
-import("core.project.project")
import("core.language.language")
+import("lib.detect.check_targetname")
-- get source info string
function _get_sourceinfo_str(target, name, item, opt)
@@ -247,7 +247,7 @@ function main(name)
-- get target
config.load()
- local target = assert(project.target(name), "target(%s) not found!", name)
+ local target = assert(check_targetname(name))
-- show target information
_show_target(target)