Skip to content

Commit

Permalink
dmg version added
Browse files Browse the repository at this point in the history
  • Loading branch information
uliss committed May 4, 2017
1 parent 6537e9c commit 2f8322e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/PdPlatform.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ if(APPLE)
COMMAND
sh ${PROJECT_SOURCE_DIR}/mac/dmg.sh
${BUNDLE_FULL_PATH}
${PD_MACOSX_BUNDLE_SUFFIX}
"${PD_MACOSX_BUNDLE_SUFFIX}-macosx-${MACOSX_VERSION}"
${PROJECT_SOURCE_DIR}
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
DEPENDS app)
Expand Down
3 changes: 3 additions & 0 deletions cmake/summary.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
message(STATUS "===========================================")
message(STATUS "Configure summary:")
message(STATUS "===========================================")
if(APPLE)
message(STATUS " MacOSX version ${MACOSX_VERSION}")
endif()
message(STATUS " Pd version: ${PD_TEXT_VERSION_FULL}")
message(STATUS " Tk version: ${TK_VERSION}")
message(STATUS " Distrib version: ${CEAMMC_DISTRIB_VERSION}")
Expand Down
5 changes: 5 additions & 0 deletions cmake/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ set(CEAMMC_DISTRIB_VERSION "2017.05")
set(PD_MACOSX_BUNDLE_VERSION ${PD_TEXT_VERSION_SHORT})
set(PD_MACOSX_BUNDLE_SUFFIX "ceammc_${CEAMMC_DISTRIB_VERSION}")


if(APPLE)
exec_program(sw_vers ARGS -productVersion OUTPUT_VARIABLE MACOSX_VERSION)
string(REGEX MATCH "[0-9]+.[0-9]+" MACOSX_VERSION ${MACOSX_VERSION})
endif()

0 comments on commit 2f8322e

Please sign in to comment.