From e224edb4709a9c67925edfaf909beb5dea6ee22d Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 7 Feb 2022 22:52:21 +0800 Subject: fix rootdir --- xmake/core/project/target.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index d5de85ddc..3bf40be81 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -1473,6 +1473,9 @@ function _instance:headerfiles(outputdir, only_deprecated) if count == 0 then rootdir = nil end + if rootdir and rootdir:trim() == "" then + rootdir = nil + end -- remove '(' and ')' first local srcpaths = header:gsub("[%(%)]", "") @@ -1850,6 +1853,9 @@ function _instance:configheader(outputdir) if count == 0 then rootdir = nil end + if rootdir and rootdir:trim() == "" then + rootdir = nil + end -- remove '(' and ')' configheader = configheader:gsub("[%(%)]", "") -- cgit v1.3.1