diff options
| author | ruki <[email protected]> | 2021-08-11 16:26:35 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-11 16:26:35 +0800 |
| commit | a6f859c98508d1113807cbe71ae29c7ecf6ba474 (patch) | |
| tree | 548d3df7c74a657a942162707d779461ff72ab09 /xmake/modules | |
| parent | e61891e35b9269e68c99dcad42a72c778b5fdebe (diff) | |
Update cmake_importfiles.lua
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/target/action/install/cmake_importfiles.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/target/action/install/cmake_importfiles.lua b/xmake/modules/target/action/install/cmake_importfiles.lua index 0c27a72fd..12d044251 100644 --- a/xmake/modules/target/action/install/cmake_importfiles.lua +++ b/xmake/modules/target/action/install/cmake_importfiles.lua @@ -37,7 +37,7 @@ function _install_cmake_importfile(target, installdir, filename, opt) -- get import file path local projectname = project.name() or target:name() local importfile_src = path.join(os.programdir(), "scripts", "cmake_importfiles", filename) - local importfile_dst = path.join(installdir, opt and opt.libdir or "lib", "cmake", projectname, (filename:gsub("xxx", target:name()))) + local importfile_dst = path.join(installdir, opt and opt.libdir or "lib", "cmake", projectname, (filename:gsub("xxx", projectname))) -- trace vprint("generating %s ..", importfile_dst) |
