diff options
| -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) |
