diff options
| -rw-r--r-- | xmake/modules/package/manager/vcpkg/find_package.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/vcpkg/find_package.lua b/xmake/modules/package/manager/vcpkg/find_package.lua index 79d875968..2853c87ee 100644 --- a/xmake/modules/package/manager/vcpkg/find_package.lua +++ b/xmake/modules/package/manager/vcpkg/find_package.lua @@ -182,7 +182,9 @@ function main(name, opt) -- attempt to find vcpkg directory local vcpkgdir = find_vcpkgdir() if not vcpkgdir then - wprint("vcpkg root directory not found, maybe you need set $VCPKG_ROOT!") + if option.get("diagnosis") then + cprint("${color.warning}checkinfo: ${clear dim}vcpkg root directory not found, maybe you need set $VCPKG_ROOT!") + end return end |
