Add version number to Windows exe file description

The "real" version number doesn't accept non-integers. This should make
debugging easier.
This commit is contained in:
Vasily
2019-04-19 22:30:04 +02:00
parent bb1d3e16fb
commit 4450b9b38a
+3
View File
@@ -11,6 +11,9 @@ SPLIT_VERSION_STRING = $$split(VERSION, -)
NUMERICAL_VERSION_NUMBER = $$member(SPLIT_VERSION_STRING, 0, 0)
VERSION = $$NUMERICAL_VERSION_NUMBER
# Keep the literal version number in the description field for debugging.
QMAKE_TARGET_DESCRIPTION = "$$cat($$PWD/build_scripts/compile_version_string.txt)"
lessThan(QT_MAJOR_VERSION, 5): error("requires Qt 5.12 or higher")
lessThan(QT_MINOR_VERSION, 12): error("requires Qt 5.12 or higher")