summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-08-26 11:10:18 +0800
committerGitHub <[email protected]>2021-08-26 11:10:18 +0800
commit42586ef30167d76c26e87095420fc5780e9d9826 (patch)
tree2e10131632f7eb556991a40f5f18c9d8408a9ef3
parenta483cecba3feb404388099ccc8bdb32e6382102c (diff)
Update cmake.lua
-rw-r--r--xmake/modules/private/action/trybuild/cmake.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/private/action/trybuild/cmake.lua b/xmake/modules/private/action/trybuild/cmake.lua
index e2022b7b8..4217e98a5 100644
--- a/xmake/modules/private/action/trybuild/cmake.lua
+++ b/xmake/modules/private/action/trybuild/cmake.lua
@@ -19,7 +19,6 @@
--
-- imports
-import("core.base.cli")
import("core.base.option")
import("core.project.config")
import("core.tool.toolchain")
@@ -199,7 +198,7 @@ function _get_configs(artifacts_dir)
-- add extra user configs
local tryconfigs = config.get("tryconfigs")
if tryconfigs then
- for _, opt in ipairs(cli.parse(tryconfigs)) do
+ for _, opt in ipairs(os.argv(tryconfigs)) do
table.insert(configs, tostring(opt))
end
end