From 7f93559f094dbb4eea62d1ea30c4728b9f2b24af Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 12 Jul 2024 22:45:15 +0800 Subject: fix headerfile outputdir --- xmake/core/project/target.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index a404f04bd..62cf2061c 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -2052,13 +2052,12 @@ function _instance:headerfiles(outputdir, opt) return end - local headerdir = outputdir - if not headerdir then - if self:installdir() then - headerdir = path.join(self:installdir(), "include") + if not outputdir then + if self:includedir() then + outputdir = self:includedir() end end - return match_copyfiles(self, "headerfiles", headerdir, {copyfiles = headerfiles}) + return match_copyfiles(self, "headerfiles", outputdir, {copyfiles = headerfiles}) end -- get the configuration files -- cgit v1.3.1