summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()