diff options
| author | ruki <[email protected]> | 2023-05-01 21:06:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-05-01 21:06:11 +0800 |
| commit | a0e32fca32f7c46c02662ad97031d161f3ad44b4 (patch) | |
| tree | 87f0a06659e12d25dfab1697866abaa2405f0e0a | |
| parent | ad7ff3121311c08a1a2a4699d037bee31d048e3d (diff) | |
fix error
| -rw-r--r-- | xmake/modules/private/action/trybuild/cmake.lua | 3 |
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") |
