summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/manager/cmake/find_package.lua2
1 files changed, 1 insertions, 1 deletions
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