summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-08-11 16:26:35 +0800
committerGitHub <[email protected]>2021-08-11 16:26:35 +0800
commita6f859c98508d1113807cbe71ae29c7ecf6ba474 (patch)
tree548d3df7c74a657a942162707d779461ff72ab09
parente61891e35b9269e68c99dcad42a72c778b5fdebe (diff)
Update cmake_importfiles.lua
-rw-r--r--xmake/modules/target/action/install/cmake_importfiles.lua2
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)