summaryrefslogtreecommitdiff
path: root/xmake/modules/cli
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/cli')
-rw-r--r--xmake/modules/cli/amalgamate.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/cli/amalgamate.lua b/xmake/modules/cli/amalgamate.lua
index b1ec3bf7c..cdab33c05 100644
--- a/xmake/modules/cli/amalgamate.lua
+++ b/xmake/modules/cli/amalgamate.lua
@@ -24,6 +24,7 @@ import("core.base.graph")
import("core.project.config")
import("core.project.task")
import("core.project.project")
+import("lib.detect.check_targetname")
-- the options
local options =
@@ -159,7 +160,7 @@ function main(...)
-- generate amalgamate code
args.outputdir = args.outputdir or config.buildir()
if args.target then
- local target = assert(project.target(args.target), "target(%s): not found!", args.target)
+ local target = assert(check_targetname(args.target))
_generate_amalgamate_code(target, args)
else
for _, target in ipairs(project.ordertargets()) do