summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-03-08 00:31:01 +0800
committerruki <[email protected]>2023-03-08 00:31:01 +0800
commit7656ce5dced614b5dab6e28780e71cba3d8876a8 (patch)
treea06254b8fa75e4e5cbd097b6849fa0901841580b
parentbfe26c7c5b71e8f081bda8362f8a718ec7322390 (diff)
improve vcpkg
-rw-r--r--xmake/modules/detect/tools/find_vcpkg.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_vcpkg.lua b/xmake/modules/detect/tools/find_vcpkg.lua
index 7f4dc37a8..ff154ad54 100644
--- a/xmake/modules/detect/tools/find_vcpkg.lua
+++ b/xmake/modules/detect/tools/find_vcpkg.lua
@@ -54,7 +54,7 @@ function main(opt)
-- find program
opt.paths = paths
opt.envs = {PATH = os.getenv("PATH")}
- local program = find_program(opt.program or "vcpkg", opt)
+ local program = find_program(opt.program or (is_host("windows") and "vcpkg.exe" or "vcpkg"), opt)
-- find program version
local version = nil