diff options
| author | ruki <[email protected]> | 2025-09-30 20:57:22 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-09-30 20:57:22 +0800 |
| commit | c5a738cfb37fab1c2aed211f1abe26ef0444923f (patch) | |
| tree | 92033c745b1fedfe427eb27b721286a3e4ed79a7 /xmake/modules | |
| parent | 25c60fd7db271e2f59bae730366867b7d648684f (diff) | |
| parent | c99d1ee6094597d5e13f6d9b1d141faa20e6c1e4 (diff) | |
Merge pull request #6874 from Shiffted/fix-project-packages
add scriptdir to project packages
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index e2b22f926..6a5d13af5 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -485,7 +485,7 @@ function install(package, configs, opt) -- copy the ported xmake.lua in the default position if it's missing local xmakefile = path.join(opt.curdir or os.curdir(), "xmake.lua") - if not os.isfile(xmakefile) then + if not os.isfile(xmakefile) and package:repo() ~= nil then local xmakefile_port = path.join(package:scriptdir(), "port", "xmake.lua") if os.isfile(xmakefile_port) then os.cp(xmakefile_port, xmakefile) |
