1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

CMake: Fix uninitialized variable warnings when configuring for iOS

This commit is contained in:
reuk 2024-08-23 15:15:13 +01:00
parent 0ed2ae64fa
commit 191dfe2e19
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -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)