diff options
| author | ruki <[email protected]> | 2024-07-12 22:45:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-15 12:21:42 +0800 |
| commit | 7f93559f094dbb4eea62d1ea30c4728b9f2b24af (patch) | |
| tree | 31fcab80d1f50bb6c78359d75fab59fc4aaea140 /xmake/core/project/target.lua | |
| parent | a4898abe2815b402d9b299c002fe20834488561b (diff) | |
fix headerfile outputdir
Diffstat (limited to 'xmake/core/project/target.lua')
| -rw-r--r-- | xmake/core/project/target.lua | 9 |
1 files 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 |
