From 08363a9f63f07ef0fe08e83792904009d3b75ace Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 3 Jun 2024 13:23:39 -0400 Subject: [PATCH] Fix Windows ZIP to say "x86_64" instead of "AMD64" Signed-off-by: Juan Cruz Viotti --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e8b0f17..8738062c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,7 +47,11 @@ endif() set(CPACK_GENERATOR ZIP) string(TOLOWER ${CMAKE_SYSTEM_NAME} LOWER_SYSTEM_NAME) -set(PLATFORM_SUFFIX "${LOWER_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}") +string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} LOWER_SYSTEM_PROCESSOR) +if(LOWER_SYSTEM_PROCESSOR STREQUAL "AMD64") + set(LOWER_SYSTEM_PROCESSOR "x86_64") +endif() +set(PLATFORM_SUFFIX "${LOWER_SYSTEM_NAME}-${LOWER_SYSTEM_PROCESSOR}") if(JSONSCHEMA_CONTINUOUS) set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}-${PROJECT_GIT_SHA}-${PLATFORM_SUFFIX}") else()