From 4859434ea07c557d3e4e56efe060a2ee6933051d Mon Sep 17 00:00:00 2001 From: Dusan Baran Date: Fri, 4 Oct 2024 12:08:08 +0200 Subject: [PATCH] Read cached system processor variable --- cmake/package.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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})