From 4f12093788d63eace2399ff4a99e180cd2a5c74c Mon Sep 17 00:00:00 2001 From: Zeex Date: Sat, 30 Dec 2017 15:30:25 +0600 Subject: [PATCH] Update macOS package name (darwin -> macos) --- source/compiler/CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/compiler/CMakeLists.txt b/source/compiler/CMakeLists.txt index 661b473..5ed7727 100644 --- a/source/compiler/CMakeLists.txt +++ b/source/compiler/CMakeLists.txt @@ -157,10 +157,17 @@ if(MSVC) endif() # Generate a binary package with CPack -string(TOLOWER ${CMAKE_SYSTEM_NAME} SYSTEM_NAME_LOWER) +set(CPACK_PACKAGE_NAME pawnc) set(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR}) set(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR}) set(CPACK_PACKAGE_VERSION ${VERSION_STR}) -set(CPACK_PACKAGE_FILE_NAME pawnc-${VERSION_STR}-${SYSTEM_NAME_LOWER}) +if(WIN32) + set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${VERSION_STR}-windows) +elseif(APPLE) + set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${VERSION_STR}-macos) +else() + string(TOLOWER ${CMAKE_SYSTEM_NAME} SYSTEM_NAME_LOWER) + set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${VERSION_STR}-${SYSTEM_NAME_LOWER}) +endif() set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_CURRENT_SOURCE_DIR}/../../license.txt) include(CPack)