summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-03-18 10:29:05 +0800
committerruki <[email protected]>2023-03-18 10:29:05 +0800
commit284eaba7ddfcc57d508d29e90fd081ecf6a73081 (patch)
tree307a976cb115ccb10affc3cb1954eeb4884b91f3
parent404a8a5feadef0c56f57895103ff6f9419cdfd41 (diff)
improve trybuild/cmake
-rw-r--r--xmake/modules/private/action/trybuild/cmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/trybuild/cmake.lua b/xmake/modules/private/action/trybuild/cmake.lua
index 8e8e08ec5..4b57562c8 100644
--- a/xmake/modules/private/action/trybuild/cmake.lua
+++ b/xmake/modules/private/action/trybuild/cmake.lua
@@ -317,7 +317,7 @@ end
function _get_configs(artifacts_dir)
-- add prefix
- local configs = {"-DCMAKE_INSTALL_PREFIX=" .. artifacts_dir, "-DCMAKE_INSTALL_LIBDIR=" .. path.join(artifacts_dir, "lib")}
+ local configs = {"-DCMAKE_INSTALL_PREFIX=" .. artifacts_dir, "-DCMAKE_INSTALL_LIBDIR:PATH=lib"}
if is_plat("windows") then
_get_configs_for_windows(configs)
elseif is_plat("android") then