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:
@@ -48,9 +48,8 @@ constexpr auto applicationOrganizationName = "AdvancedSettings-Team";
|
||||
constexpr auto applicationName = "OpenVRAdvancedSettings";
|
||||
constexpr const char* applicationKey = "OVRAS-Team.AdvancedSettings";
|
||||
constexpr const char* applicationDisplayName = "Advanced Settings";
|
||||
constexpr const char* applicationVersionString = {
|
||||
#include "../build_scripts/compile_version_string.txt"
|
||||
};
|
||||
|
||||
constexpr const char* applicationVersionString = APPLICATION_VERSION;
|
||||
|
||||
} // namespace application_strings
|
||||
|
||||
|
||||
Reference in New Issue
Block a user