summaryrefslogtreecommitdiff
path: root/xmake/scripts
diff options
context:
space:
mode:
authorHoildkv <[email protected]>2021-07-19 13:34:20 +0800
committerGitHub <[email protected]>2021-07-19 13:34:20 +0800
commit3c3f90e4407257bacdeb6939aabdeb7fc732f355 (patch)
tree11c9a513c771a39bbfc1293e0829c93dab9ef325 /xmake/scripts
parent8f90d546e3b3136b118f145a8e6dccc75ddd1800 (diff)
rename targetbytes
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 36ccc4c5d..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 "@TARGETBYTES@")
- math(EXPR installedBits "@TARGETBYTES@ * 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()