summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/action/trybuild/cmake.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/private/action/trybuild/cmake.lua b/xmake/modules/private/action/trybuild/cmake.lua
index aac7c662f..d9f15f4a0 100644
--- a/xmake/modules/private/action/trybuild/cmake.lua
+++ b/xmake/modules/private/action/trybuild/cmake.lua
@@ -504,11 +504,12 @@ function build()
-- get artifacts directory
local opt = {}
- opt.artifacts_dir = _get_artifacts_dir()
+ local artifacts_dir = _get_artifacts_dir()
if not os.isdir(artifacts_dir) then
os.mkdir(artifacts_dir)
end
os.cd(_get_buildir())
+ opt.artifacts_dir = artifacts_dir
-- exists $CMAKE_GENERATOR? use it
opt.cmake_generator = os.getenv("CMAKE_GENERATOR")