summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-20 00:32:22 +0800
committerruki <[email protected]>2020-11-20 00:32:22 +0800
commitb5ffa09e27f191df0a3853876131901c13d26b9b (patch)
tree0ff2998efb76f7cdbc899edcbf7a4fefbb9b8016
parent89f8ac4a09a7c3f15d4e6cb76d38d12c035cda39 (diff)
improve tools/cmake
-rw-r--r--xmake/modules/package/tools/cmake.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 42a48f81b..453097c6d 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -263,6 +263,7 @@ function buildenvs(package)
if fetchinfo then
table.join2(CMAKE_LIBRARY_PATH, fetchinfo.linkdirs)
table.join2(CMAKE_INCLUDE_PATH, fetchinfo.includedirs)
+ table.join2(CMAKE_INCLUDE_PATH, fetchinfo.sysincludedirs)
end
else
table.join2(CMAKE_PREFIX_PATH, dep:installdir())