diff --git a/cmake.changes b/cmake.changes index bc190e8..078f53d 100644 --- a/cmake.changes +++ b/cmake.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 31 13:19:26 UTC 2021 - Ralf Habacker + +- Be more verbose when version in generated xxxConfigVersion.cmake + files is empty. + ------------------------------------------------------------------- Sun Aug 29 13:38:36 UTC 2021 - Andreas Stieger diff --git a/cmake.prov b/cmake.prov index b0d0092..2b0d692 100644 --- a/cmake.prov +++ b/cmake.prov @@ -69,7 +69,11 @@ class CMakeParser: # set(PACKAGE_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