summaryrefslogtreecommitdiff
path: root/xmake/scripts
diff options
context:
space:
mode:
authorHoildkv <[email protected]>2021-07-19 11:41:59 +0800
committerGitHub <[email protected]>2021-07-19 11:41:59 +0800
commit8f90d546e3b3136b118f145a8e6dccc75ddd1800 (patch)
tree82324672732f413f51eb577d70a090a79650d859 /xmake/scripts
parentf8352cf6ef9bbb482a953064acb2a85ef678bbfd (diff)
Update xxxConfigVersion.cmake
Diffstat (limited to 'xmake/scripts')
-rw-r--r--xmake/scripts/cmake_importfiles/xxxConfigVersion.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/cmake_importfiles/xxxConfigVersion.cmake b/xmake/scripts/cmake_importfiles/xxxConfigVersion.cmake
index 68ca4fbd6..36ccc4c5d 100644
--- a/xmake/scripts/cmake_importfiles/xxxConfigVersion.cmake
+++ b/xmake/scripts/cmake_importfiles/xxxConfigVersion.cmake
@@ -41,8 +41,8 @@ if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
endif()
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
-if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
- math(EXPR installedBits "8 * 8")
+if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "@TARGETBYTES@")
+ math(EXPR installedBits "@TARGETBYTES@ * 8")
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
set(PACKAGE_VERSION_UNSUITABLE TRUE)
endif()