mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
CMake: Warn if bundle ID contains spaces
This commit is contained in:
parent
db90a31813
commit
10baaa420b
2 changed files with 7 additions and 1 deletions
|
|
@ -1297,6 +1297,12 @@ function(_juce_set_fallback_properties target)
|
|||
get_target_property(real_company_name ${target} JUCE_COMPANY_NAME)
|
||||
_juce_set_property_if_not_set(${target} BUNDLE_ID "com.${real_company_name}.${target}")
|
||||
|
||||
get_target_property(applied_bundle_id ${target} JUCE_BUNDLE_ID)
|
||||
|
||||
if("${applied_bundle_id}" MATCHES ".* .*")
|
||||
message(WARNING "Target ${target} has JUCE_BUNDLE_ID '${applied_bundle_id}', which contains spaces. Use the BUNDLE_ID option to specify a valid ID.")
|
||||
endif()
|
||||
|
||||
_juce_set_property_if_not_set(${target} VERSION ${PROJECT_VERSION})
|
||||
|
||||
get_target_property(final_version ${target} JUCE_VERSION)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue