diff --git a/extras/Build/CMake/JUCEUtils.cmake b/extras/Build/CMake/JUCEUtils.cmake index c8017de5ff..2385c6d62f 100644 --- a/extras/Build/CMake/JUCEUtils.cmake +++ b/extras/Build/CMake/JUCEUtils.cmake @@ -2088,6 +2088,21 @@ function(juce_add_console_app target) target_compile_definitions(${target} PRIVATE _CONSOLE=1) endif() + # When building for iOS, these properties will be read in order to populate + # a plist for the app. We probably don't care whether these values are sane; + # if we wanted to run on iOS, we'd use juce_gui_app instead. + # We clear these explicitly to avoid warnings when configuring with + # --warn-uninitialized + set_target_properties(${target} PROPERTIES + MACOSX_BUNDLE_BUNDLE_NAME "" + MACOSX_BUNDLE_BUNDLE_VERSION "" + MACOSX_BUNDLE_COPYRIGHT "" + MACOSX_BUNDLE_GUI_IDENTIFIER "" + MACOSX_BUNDLE_ICON_FILE "" + MACOSX_BUNDLE_INFO_STRING "" + MACOSX_BUNDLE_LONG_VERSION_STRING "" + MACOSX_BUNDLE_SHORT_VERSION_STRING "") + _juce_initialise_target(${target} ${ARGN}) if(NOT JUCE_ARG__NO_RESOURCERC)