CMake: add version strings to Apple Info.plist files
authorDavid Ludwig <dludwig@pobox.com>
Mon, 23 Sep 2019 17:48:14 -0400
changeset 13085ced7e9670370
parent 13084 c3880ebab198
child 13086 144fc4e62b72
CMake: add version strings to Apple Info.plist files

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')
test/CMakeLists.txt
     1.1 --- a/test/CMakeLists.txt	Tue Aug 27 12:30:20 2019 -0400
     1.2 +++ b/test/CMakeLists.txt	Mon Sep 23 17:48:14 2019 -0400
     1.3 @@ -145,6 +145,8 @@
     1.4              if(TARGET_TYPE STREQUAL "EXECUTABLE")
     1.5                  set_target_properties("${CURRENT_TARGET}" PROPERTIES
     1.6                      MACOSX_BUNDLE_GUI_IDENTIFIER "org.libsdl.${CURRENT_TARGET}"
     1.7 +                    MACOSX_BUNDLE_BUNDLE_VERSION "${SDL_VERSION}"
     1.8 +                    MACOSX_BUNDLE_SHORT_VERSION_STRING "${SDL_VERSION}"
     1.9                  )
    1.10              endif()
    1.11          endforeach()