From 6496473def61d3a6769aa4bdbf8ee3afa82ca009 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 16 Feb 2023 23:15:57 +0800 Subject: revert find package from vcpkg --- xmake/modules/package/manager/vcpkg/find_package.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.3.1