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)