diff options
| author | xq114 <[email protected]> | 2021-08-11 21:47:03 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2021-08-11 21:47:03 +0800 |
| commit | 9c5d90b1f884b600fbc7e9327ba34ad6328fe5c5 (patch) | |
| tree | 713a9883c26cc3bb27c2dfbce12dc387777479be | |
| parent | ef9e86536b0c707ea6c6b0d515f88b1dc4b3385e (diff) | |
add target: prefix
| -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 40ff77295..35479d3c1 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 = target: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"} |
