Update macOS package name (darwin -> macos)
This commit is contained in:
parent
82dd745f90
commit
4f12093788
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user