summaryrefslogtreecommitdiff
path: root/xmake/scripts
diff options
context:
space:
mode:
authorÂngelo Andrade Cirino <[email protected]>2021-08-05 17:06:44 -0300
committerÂngelo Andrade Cirino <[email protected]>2021-08-05 17:06:44 -0300
commit286ba62b6189953f8a0c255053ca3c3f7f1e5693 (patch)
tree7d0671f7a57ea8ae102be3454d956848eb8b0b5c /xmake/scripts
parent81ad292ea67f82d88d785a37d23b1f1603996da1 (diff)
parenta959af20d2a34038efb13053c112ef1d55084081 (diff)
Merge branch 'master' of https://github.com/xmake-io/xmake
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..f09774e12 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 "@TARGET_PTRBYTES@")
+ math(EXPR installedBits "@TARGET_PTRBYTES@ * 8")
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
set(PACKAGE_VERSION_UNSUITABLE TRUE)
endif()