Suffixing OS X package file with '-OSX' instead of '-Darwin'

This commit is contained in:
Daniel Wolf 2016-01-13 14:43:01 +01:00
parent cfd9ac9da2
commit 21a24c17b6
1 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,9 @@ target_link_libraries(runTests gtest gmock gmock_main)
set(CPACK_PACKAGE_NAME ${appName})
string(REPLACE " " "-" CPACK_PACKAGE_NAME "${CPACK_PACKAGE_NAME}")
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
set(CPACK_SYSTEM_NAME "OSX")
endif()
set(CPACK_PACKAGE_VERSION_MAJOR ${appVersionMajor})
set(CPACK_PACKAGE_VERSION_MINOR ${appVersionMinor})
set(CPACK_PACKAGE_VERSION_PATCH ${appVersionPatch})