diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index dc3ca351a..7d8ce256b 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -47,6 +47,8 @@ function(sfml_set_common_ios_properties target) MACOSX_BUNDLE ON # Bare executables are not usable on iOS, only bundle applications MACOSX_BUNDLE_GUI_IDENTIFIER "org.sfml-dev.${target}" # If missing, trying to launch an example in simulator will make Xcode < 9.3 crash MACOSX_BUNDLE_BUNDLE_NAME "${target}" + MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}" + MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION_MAJOR}" MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_VERSION}" ) endif() @@ -416,6 +418,11 @@ function(sfml_add_test target SOURCES DEPENDS) endif() endif() + # Required to actually run the tests + if(SFML_OS_IOS) + sfml_set_common_ios_properties(${target}) + endif() + # Enable support for UTF-8 characters in source code if(SFML_COMPILER_MSVC) target_compile_options(${target} PRIVATE /utf-8)