summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2022-07-20 13:01:19 +0200
committerSirLynix <[email protected]>2022-07-20 13:02:46 +0200
commit7fdf130ec0635d544bb3a33ea216e954cd635290 (patch)
tree95f2e7ad23404d75015d8dd5ca99f5692fd8d3bd /xmake/modules
parent338088a607b3ffe10602a44a2f1b393f4ba722b2 (diff)
Update cmake.lua
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/package/tools/cmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 932dcb522..d31788a31 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -275,7 +275,7 @@ function _get_configs_for_generic(package, configs, opt)
if package:config("pic") ~= false then
table.insert(configs, "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
end
- if package:policy("package.include_external_headers") == false then
+ if not package:use_external_includes() then
table.insert(configs, "-DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON")
end
end