diff options
| author | Hoildkv <[email protected]> | 2021-07-19 11:41:06 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-19 11:41:06 +0800 |
| commit | f8352cf6ef9bbb482a953064acb2a85ef678bbfd (patch) | |
| tree | 28a25c18788b142f8eba34706b5791f18f85e08b /xmake/modules/target | |
| parent | 03ffb3cb797b7029653f77309c27722d9be78483 (diff) | |
Update cmake_importfiles.lua
Diffstat (limited to 'xmake/modules/target')
| -rw-r--r-- | xmake/modules/target/action/install/cmake_importfiles.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/target/action/install/cmake_importfiles.lua b/xmake/modules/target/action/install/cmake_importfiles.lua index 7bfb5d636..94f68a482 100644 --- a/xmake/modules/target/action/install/cmake_importfiles.lua +++ b/xmake/modules/target/action/install/cmake_importfiles.lua @@ -27,7 +27,8 @@ function _get_builtinvars(target, installdir) PROJECTNAME = project.name() or target:name(), TARGETFILENAME = path.filename(target:targetfile()), TARGETKIND = target:is_shared() and "SHARED" or "STATIC", - PACKAGE_VERSION = target:get("version") or "1.0.0"} + PACKAGE_VERSION = target:get("version") or "1.0.0", + TARGETBYTES = target:is_arch("x86", "i386") and "4" or "8"} end -- install cmake import file |
