SHA256
3
0
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:
Dominique Leuenberger 2021-09-08 19:36:28 +00:00 committed by Git OBS Bridge
commit 0607f110d9
2 changed files with 11 additions and 1 deletions

View File

@ -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> Sun Aug 29 13:38:36 UTC 2021 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@ -69,7 +69,11 @@ class CMakeParser:
# set(PACKAGE_VERSION <version>) # set(PACKAGE_VERSION <version>)
version = re.match(r"^set[\ ]*\([\ ]*PACKAGE_VERSION[\ ]+[\"]*([0-9\.]+)[\"]*[\ ]*[.]*\)", line) version = re.match(r"^set[\ ]*\([\ ]*PACKAGE_VERSION[\ ]+[\"]*([0-9\.]+)[\"]*[\ ]*[.]*\)", line)
if version: 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 return None