summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-07-07 00:15:14 +0800
committerruki <[email protected]>2021-07-07 00:15:14 +0800
commitce73725e6f90c76c191db3bba8f0bc7ad8e46760 (patch)
tree881b9ad18dc1f73b5b93ccf85bff192c09b5b9ef
parent635a991ec2e5da0ff77fb480bfadeb3fc0b83abd (diff)
improve to find vcpkg packages
-rw-r--r--xmake/modules/package/manager/vcpkg/find_package.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/vcpkg/find_package.lua b/xmake/modules/package/manager/vcpkg/find_package.lua
index 6fe68c8ed..e965ace73 100644
--- a/xmake/modules/package/manager/vcpkg/find_package.lua
+++ b/xmake/modules/package/manager/vcpkg/find_package.lua
@@ -22,6 +22,7 @@
import("lib.detect.find_file")
import("lib.detect.find_library")
import("lib.detect.find_tool")
+import("core.base.option")
import("core.project.config")
import("core.project.target")
import("detect.sdks.find_vcpkgdir")
@@ -36,6 +37,9 @@ function main(name, opt)
-- attempt to find vcpkg directory
local vcpkgdir = find_vcpkgdir()
if not vcpkgdir then
+ 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