From 068088233be4a0a0a4dd1fdcc1a1af1fdd7b994e Mon Sep 17 00:00:00 2001 From: JonnyPtn Date: Mon, 17 Feb 2025 19:56:05 +0000 Subject: [PATCH] Set required properties for ios test apps --- cmake/Macros.cmake | 7 +++++++ 1 file changed, 7 insertions(+) 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)