From 284eaba7ddfcc57d508d29e90fd081ecf6a73081 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Mar 2023 10:29:05 +0800 Subject: improve trybuild/cmake --- xmake/modules/private/action/trybuild/cmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1