diff --git a/cmake/package.cmake b/cmake/package.cmake index b359af92b0f..8fe6121b53a 100644 --- a/cmake/package.cmake +++ b/cmake/package.cmake @@ -38,7 +38,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows") endif() else() set(CPACK_SYSTEM_NAME "Linux") - if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") + if ($CACHE{CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64") set(CPACK_SYSTEM_PROCESSOR "arm64") else() set(CPACK_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR})