From 15523799e55e04e8421c9a61da413d2a1814a0b2 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 27 Jul 2022 00:28:41 +0800 Subject: improve cmake.find_package --- xmake/modules/package/manager/cmake/find_package.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/package/manager/cmake/find_package.lua b/xmake/modules/package/manager/cmake/find_package.lua index f039dd042..c91873f7a 100644 --- a/xmake/modules/package/manager/cmake/find_package.lua +++ b/xmake/modules/package/manager/cmake/find_package.lua @@ -48,7 +48,7 @@ function _find_package(cmake, name, opt) -- set search mode, CONFIG, MODULE, BOTH -- e.g. https://cmake.org/cmake/help/latest/command/find_package.html#id4 if configs.search_mode then - requirestr = requirestr .. " " .. configs.search_mode + requirestr = requirestr .. " " .. configs.search_mode:upper() end -- use opt.components is for backward compatibility local components = configs.components or opt.components -- cgit v1.3.1