Skip to content

Commit

Permalink
CMake: add version strings to Apple Info.plist files
Browse files Browse the repository at this point in the history
This fills in the CFBundleVersion and CFBundleShortVersionString fields,
if and when SDL's test-apps are built via CMake.  This is needed to install
the .app bundles on iOS 13+ (using 'xcrun simctl install booted path/to/testsuchandsuch.app')
  • Loading branch information
DavidLudwig committed Sep 23, 2019
1 parent ec65a34 commit 4e518f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/CMakeLists.txt
Expand Up @@ -145,6 +145,8 @@ if(APPLE)
if(TARGET_TYPE STREQUAL "EXECUTABLE")
set_target_properties("${CURRENT_TARGET}" PROPERTIES
MACOSX_BUNDLE_GUI_IDENTIFIER "org.libsdl.${CURRENT_TARGET}"
MACOSX_BUNDLE_BUNDLE_VERSION "${SDL_VERSION}"
MACOSX_BUNDLE_SHORT_VERSION_STRING "${SDL_VERSION}"
)
endif()
endforeach()
Expand Down

0 comments on commit 4e518f9

Please sign in to comment.