From a0e32fca32f7c46c02662ad97031d161f3ad44b4 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 1 May 2023 21:06:11 +0800 Subject: fix error --- xmake/modules/private/action/trybuild/cmake.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") -- cgit v1.3.1