diff options
| -rw-r--r-- | xmake/modules/detect/tools/find_vcpkg.lua | 2 |
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 |
