Skip to content

Commit

Permalink
Merge pull request #496 from rdumusc/master
Browse files Browse the repository at this point in the history
Fix OSX app bundle creation
  • Loading branch information
tribal-tec authored Jun 14, 2016
2 parents dd94e50 + 13cde33 commit 6c85cb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions CommonApplication.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function(common_application Name)
set(SOURCES ${${NAME}_SOURCES})
set(HEADERS ${${NAME}_HEADERS})
set(LINK_LIBRARIES ${${NAME}_LINK_LIBRARIES})
set(ICON ${${NAME}_ICON})
set(_ICON ${${NAME}_ICON}) # also used to configure Info.plist

if(${NAME}_SHADERS)
stringify_shaders(${${NAME}_SHADERS})
Expand All @@ -52,7 +52,7 @@ function(common_application Name)
endif()
endif()

add_executable(${Name} ${OPTIONS} ${ICON} ${HEADERS} ${SOURCES})
add_executable(${Name} ${OPTIONS} ${_ICON} ${HEADERS} ${SOURCES})
set_target_properties(${Name} PROPERTIES FOLDER ${PROJECT_NAME})
common_compile_options(${Name})
target_link_libraries(${Name} ${LINK_LIBRARIES})
Expand All @@ -66,6 +66,7 @@ function(common_application Name)
# Configure bundle property file using current version, copyright and icon
set(_BUNDLE_NAME ${Name})
set(_COPYRIGHT ${${NAME}_COPYRIGHT})
set(_VERSION ${${PROJECT_NAME}_VERSION})
configure_file(${CMAKE_SOURCE_DIR}/CMake/common/Info.plist.in
${CMAKE_CURRENT_BINARY_DIR}/Info.plist @ONLY)

Expand Down
4 changes: 2 additions & 2 deletions Info.plist.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLongVersionString</key>
<string>@VERSION@</string>
<string>@_VERSION@</string>
<key>CFBundleName</key>
<string></string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>@VERSION@</string>
<string>@_VERSION@</string>
<key>CFBundleSignature</key>
<string></string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit 6c85cb5

Please sign in to comment.