CMake generates a wrong bundle ID

Hi,

The logic for generating a default bundle ID by CMake is wrong. If the company or application name contains any spaces, then these spaces are not replaced with underscores. Instead, the bundle ID contains spaces, which is not allowed. The Projucer on the other hand deals with this properly.

According to the Apple documentation: “the bundle ID string must contain only alphanumeric characters (A–Z, a–z, and 0–9), hyphens (-), and periods (.).”

Could this be fixed, please?

Thanks,
Jelle

You can specify whatever bundle ID you require using the BUNDLE_ID argument to juce_add_plugin or juce_add_gui_app.

Thanks. That is indeed my current solution. But, as you probably understand, I prefer to minimize the amount of CMake customization and use default values as much as possible.