Add QMAKE_PKGCONFIG_VERSION variable to allow version overriding
Change-Id: Ibba50c74f308d81e0058e4dacec7ed84e738473e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
942a59d8fb
commit
d5a16e4a3c
@ -3270,7 +3270,11 @@ MakefileGenerator::writePkgConfigFile()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
t << "Description: " << desc << endl;
|
t << "Description: " << desc << endl;
|
||||||
t << "Version: " << project->first("VERSION") << endl;
|
ProString version = project->first("QMAKE_PKGCONFIG_VERSION");
|
||||||
|
if (version.isEmpty())
|
||||||
|
version = project->first("VERSION");
|
||||||
|
if (!version.isEmpty())
|
||||||
|
t << "Version: " << version << endl;
|
||||||
|
|
||||||
// libs
|
// libs
|
||||||
t << "Libs: ";
|
t << "Libs: ";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user