From 44f969142138e5559ae11e3a18d0b27cda9eb489 Mon Sep 17 00:00:00 2001 From: Chris Collins Date: Sun, 19 Jul 2020 01:32:19 +1000 Subject: [PATCH] Substitute Darwin with macOS in the artefact name. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 76e5d45..0e50db4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,14 +115,16 @@ if(USE_LOG) endif() if(NOT BUILD_DEMO) - set(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}) set(CPACK_WIX_UPGRADE_GUID E709D29C-1BD8-4679-A8CA-9D40567771F5) if(CMAKE_SYSTEM_NAME MATCHES Linux) set(CPACK_GENERATOR TGZ) + set(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}) elseif(CMAKE_SYSTEM_NAME MATCHES Windows) set(CPACK_GENERATOR ZIP;WIX) + set(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}) elseif(CMAKE_SYSTEM_NAME MATCHES Darwin) set(CPACK_GENERATOR ZIP;DragNDrop) + set(CPACK_SYSTEM_NAME macOS-${CMAKE_SYSTEM_PROCESSOR}) endif() set(CPACK_PACKAGE_NAME "Strange Adventures in Infinite Space GPL") set(CPACK_PACKAGE_FILE_NAME "SAIS-GPL-${CMAKE_PROJECT_VERSION}-${CPACK_SYSTEM_NAME}")