Convert C++ version string to be define instead of include
This allows Qmake to use the version number as well as not requiring all other uses of the version string to strip double quotes from it. This also reduces the fragility of the version string as it was required to be a valid C++ char*, even in contexts where that wouldn't matter.
This commit is contained in:
@@ -11,8 +11,7 @@
|
||||
!define THIRDDIR "..\third-party"
|
||||
!define PACKAGEDIR "..\src\package_files"
|
||||
!define PROJECTDIR "..\"
|
||||
!define /file VERSION_STRING_QUOTES "..\build_scripts\compile_version_string.txt"
|
||||
!searchreplace VERSION_STRING ${VERSION_STRING_QUOTES} "$\"" ""
|
||||
!define /file VERSION_STRING "..\build_scripts\compile_version_string.txt"
|
||||
|
||||
|
||||
;Installer icon
|
||||
|
||||
Reference in New Issue
Block a user