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()