summaryrefslogtreecommitdiff
path: root/xmake/modules/package/manager/cmake/find_package.lua
diff options
context:
space:
mode:
authorMeanSquaredError <[email protected]>2025-11-20 17:16:42 +0200
committerMeanSquaredError <[email protected]>2025-11-23 18:36:20 +0200
commit5045cb0b591c9bcd50cd09d040d56dbd8fbeee70 (patch)
tree806288546c91c226dd8f2aa6ad5c420b88e570f6 /xmake/modules/package/manager/cmake/find_package.lua
parent4a3e993297b57f6c725690b26a81ecf5ad9c087e (diff)
cmake find_package: Add configuration option allow_empty_package that allows system packages that don't need any include directories or linked libraries.
Diffstat (limited to 'xmake/modules/package/manager/cmake/find_package.lua')
-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 f1b4cd321..376b583dd 100644
--- a/xmake/modules/package/manager/cmake/find_package.lua
+++ b/xmake/modules/package/manager/cmake/find_package.lua
@@ -301,7 +301,7 @@ function _find_package(cmake, name, opt)
os.tryrm(workdir)
-- get results
- if links or includedirs then
+ if configs.allow_empty_package or links or includedirs then
local results = {}
results.links = table.reverse_unique(links)
results.ldflags = table.reverse_unique(ldflags)