Fix apparent typo in MACOSX_BUNDLE_BUNDLE_VERSION variable name

The documented name of the bundle version variable has BUNDLE twice, see

https://cmake.org/cmake/help/latest/prop_tgt/MACOSX_BUNDLE_INFO_PLIST.html

and samples/Info.plist.in uses this variable, but we set
MACOSX_BUNDLE_VERSION instead, which seems wrong, so use the apparently
correct variable name instead.
This commit is contained in:
Vadim Zeitlin
2021-08-15 16:29:37 +02:00
parent 64de37cf9d
commit b7f2e4d423

View File

@@ -876,7 +876,7 @@ function(wx_add name group)
MACOSX_BUNDLE_ICON_FILE wxmac.icns MACOSX_BUNDLE_ICON_FILE wxmac.icns
MACOSX_BUNDLE_LONG_VERSION_STRING "${wxVERSION}" MACOSX_BUNDLE_LONG_VERSION_STRING "${wxVERSION}"
MACOSX_BUNDLE_SHORT_VERSION_STRING "${wxVERSION}" MACOSX_BUNDLE_SHORT_VERSION_STRING "${wxVERSION}"
MACOSX_BUNDLE_VERSION "${wxVERSION}" MACOSX_BUNDLE_BUNDLE_VERSION "${wxVERSION}"
MACOSX_BUNDLE_COPYRIGHT "${wxCOPYRIGHT}" MACOSX_BUNDLE_COPYRIGHT "${wxCOPYRIGHT}"
MACOSX_BUNDLE_GUI_IDENTIFIER "org.wxwidgets.${target_name}" MACOSX_BUNDLE_GUI_IDENTIFIER "org.wxwidgets.${target_name}"
) )