forked from pool/cmake
Accepting request 917065 from devel:tools:building
OBS-URL: https://build.opensuse.org/request/show/917065 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake?expand=0&rev=203
This commit is contained in:
commit
0607f110d9
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 31 13:19:26 UTC 2021 - Ralf Habacker <ralf.habacker@freenet.de>
|
||||
|
||||
- Be more verbose when version in generated xxxConfigVersion.cmake
|
||||
files is empty.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 29 13:38:36 UTC 2021 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
|
@ -69,7 +69,11 @@ class CMakeParser:
|
||||
# set(PACKAGE_VERSION <version>)
|
||||
version = re.match(r"^set[\ ]*\([\ ]*PACKAGE_VERSION[\ ]+[\"]*([0-9\.]+)[\"]*[\ ]*[.]*\)", line)
|
||||
if version:
|
||||
return version.groups(1)[0]
|
||||
_version = version.groups(1)[0]
|
||||
if _version == '..':
|
||||
sys.stderr.write("error: Version pattern found without values - '%s' was created incorrectly\n" % versionFile)
|
||||
return _version
|
||||
|
||||
|
||||
return None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user