1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

define app version only in CMakeLists

now it's propagated to code via macros
This commit is contained in:
Andrey Filipenkov
2022-10-04 12:29:38 +03:00
parent af1f35779d
commit 92dd6d8c17
5 changed files with 12 additions and 18 deletions

View File

@ -538,7 +538,7 @@ JsonNode addMeta(JsonNode config, std::string meta)
CModInfo::Version CModInfo::Version::GameVersion()
{
return Version(GameConstants::VCMI_VERSION_MAJOR, GameConstants::VCMI_VERSION_MINOR, GameConstants::VCMI_VERSION_PATCH);
return Version(VCMI_VERSION_MAJOR, VCMI_VERSION_MINOR, VCMI_VERSION_PATCH);
}
CModInfo::Version CModInfo::Version::fromString(std::string from)