summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-21 22:07:28 +0800
committerruki <[email protected]>2020-11-21 22:07:28 +0800
commit1eb2ac7dc458eca00f72173e3ec4a971e3edc790 (patch)
tree2516077acc5b2e6a4608d9916f47f9dc2afa91a9 /xmake/modules/package/tools/cmake.lua
parent287d1e2ca2bd376d488f91d58dd36f45d2a3cf6a (diff)
fix external packages
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
-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 05695afa3..f561c9f9f 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -42,7 +42,7 @@ function _get_cflags_from_packagedeps(package, opt)
if dep then
local fetchinfo = dep:fetch({external = false})
if fetchinfo then
- table.join2(result, compiler.map_flags("cxx", "define", fetchinfo.includedirs))
+ table.join2(result, compiler.map_flags("cxx", "define", fetchinfo.defines))
table.join2(result, compiler.map_flags("cxx", "includedir", fetchinfo.includedirs))
table.join2(result, compiler.map_flags("cxx", "sysincludedir", fetchinfo.sysincludedirs))
end