summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaikari <[email protected]>2025-10-01 18:40:48 +0300
committerGitHub <[email protected]>2025-10-01 18:40:48 +0300
commitb73504bec95962da74afe23a9cb1810f9f66572d (patch)
tree1b37cfe5b22245810000586a26b4497f93623e60
parent291bfbea0f79aa76468285e0a4cb40475fc80133 (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 cf1be782a..6b3d97546 100644
--- a/xmake/modules/target/action/install/cmake_importfiles.lua
+++ b/xmake/modules/target/action/install/cmake_importfiles.lua
@@ -43,7 +43,7 @@ function _get_builtinvars(target, installdir)
TARGETFILENAME = target:targetfile() and _get_libfile(target, installdir),
TARGETKIND = target:is_headeronly() and "INTERFACE" or (target:is_shared() and "SHARED" or "STATIC"),
PACKAGE_VERSION = target:get("version") or "1.0.0",
- TARGET_PTRBYTES = target:is_arch("armeabi", "armeabi-v7a", "x86", "mips", "i386", "armv7", "armv7s", "mipsel", "wasm32") and "4" or "8"}
+ TARGET_PTRBYTES = target:check_sizeof("void*")}
end
-- install cmake config file