Lines 1731-1740
Link Here
|
1731 |
|
1731 |
|
1732 |
// Try to parse the version number and store the results that were |
1732 |
// Try to parse the version number and store the results that were |
1733 |
// successfully parsed. |
1733 |
// successfully parsed. |
1734 |
unsigned int parsed_major; |
1734 |
unsigned int parsed_major = 0; |
1735 |
unsigned int parsed_minor; |
1735 |
unsigned int parsed_minor = 0; |
1736 |
unsigned int parsed_patch; |
1736 |
unsigned int parsed_patch = 0; |
1737 |
unsigned int parsed_tweak; |
1737 |
unsigned int parsed_tweak = 0; |
1738 |
this->VersionFoundCount = |
1738 |
this->VersionFoundCount = |
1739 |
sscanf(this->VersionFound.c_str(), "%u.%u.%u.%u", |
1739 |
sscanf(this->VersionFound.c_str(), "%u.%u.%u.%u", |
1740 |
&parsed_major, &parsed_minor, |
1740 |
&parsed_major, &parsed_minor, |
Lines 1751-1756
Link Here
|
1751 |
} |
1751 |
} |
1752 |
|
1752 |
|
1753 |
result_version = this->Makefile->GetSafeDefinition("PACKAGE_VERSION"); |
1753 |
result_version = this->Makefile->GetSafeDefinition("PACKAGE_VERSION"); |
|
|
1754 |
if(!this->VersionFoundCount) this->Makefile->RemoveDefinition("PACKAGE_FIND_VERSION"); |
1754 |
if (result_version.empty()) |
1755 |
if (result_version.empty()) |
1755 |
{ |
1756 |
{ |
1756 |
result_version = "unknown"; |
1757 |
result_version = "unknown"; |