Details
-
Bug
-
Resolution: Done
-
P4: Low
-
4.6.1
-
None
-
Mac OS 10.6.2 (Snow Leopard), Intel processor, Qt 4.6.1 Cocoa
Description
The qmake doc about QMAKE_INFO_PLIST (at http://doc.trolltech.com/4.6/qmake-variable-reference.html#qmake-info-plist) says that "In the .plist file, you can define some variables [...] which qmake will replace with the actual executable name." It also says that one of these variables is "@SHORT_VERSION@". However, when I include @SHORT_VERSION@, it never gets replace and ends up litteraly in the Info.plist file.
My .pro file is:
TARGET = Foo
VERSION = 0.0.1
HEADERS = mainwindow.hpp
SOURCES = main.cpp mainwindow.cpp
macx {
ICON = images/icon.icns
QMAKE_INFO_PLIST = MyInfo.plist
}
The resulting Info.plist file contains:
<key>CFBundleGetInfoString</key>
<string>@SHORT_VERSION@</string>