diff options
| author | ruki <[email protected]> | 2021-09-17 17:02:18 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-17 17:02:18 +0800 |
| commit | 1e44c983254c68ebb6eb93b865816b13e18aa68f (patch) | |
| tree | 94e49c86aba08738eea4be4a3dd7869305c121a5 | |
| parent | 4f2a99c4954906721bee469a5a36e448752f4cc6 (diff) | |
Update install.lua
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/install.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua index b6dad65d2..fe040d25e 100644 --- a/xmake/modules/private/action/require/impl/actions/install.lua +++ b/xmake/modules/private/action/require/impl/actions/install.lua @@ -94,8 +94,7 @@ end -- fix paths for the precompiled package -- @see https://github.com/xmake-io/xmake/issues/1671 function _fix_paths_for_precompiled_package(package) - local librarydir = package:installdir("lib") - local filepaths = {path.join(librarydir, "cmake", "*", "*.cmake")} + local filepaths = {path.join(package:installdir(), "**.cmake")} for _, filepath in ipairs(filepaths) do for _, file in ipairs(os.files(filepath)) do io.gsub(file, "(\"(.-)\")", function(_, value) |
