summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxq114 <[email protected]>2021-08-11 20:48:25 +0800
committerxq114 <[email protected]>2021-08-11 20:48:25 +0800
commitef9e86536b0c707ea6c6b0d515f88b1dc4b3385e (patch)
treed4b6657bebde1e7e8544c6fd6c6a264fd38350fe
parentf75a7e64e5d370e0da29ea394d9a91c4436ce3c2 (diff)
fix typo
-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 1fb9ca5a6..40ff77295 100644
--- a/xmake/modules/target/action/install/cmake_importfiles.lua
+++ b/xmake/modules/target/action/install/cmake_importfiles.lua
@@ -25,7 +25,7 @@ import("core.project.project")
function _get_builtinvars(target, installdir)
return {TARGETNAME = target:name(),
PROJECTNAME = project.name() or target:name(),
- TARGETFILENAME = is_plat("windows", "mingw") and path.filename(target:targetfile()):gsub(".dll$", ".lib") or path.filename(target:targetfile()),
+ TARGETFILENAME = is_plat("windows", "mingw") and path.filename(target:targetfile()):gsub("%.dll$", ".lib") or path.filename(target:targetfile()),
TARGETKIND = target:is_shared() and "SHARED" or "STATIC",
PACKAGE_VERSION = target:get("version") or "1.0.0",
TARGET_PTRBYTES = target:is_arch("x86", "i386") and "4" or "8"}