cmake: fix reading version from changelog
Fix version regex to allow version numbers without text and revision. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
parent
699d0c3724
commit
ec7d1b15b1
|
@ -9,7 +9,7 @@ function(changelog_version version revision version_release)
|
|||
return()
|
||||
endif()
|
||||
|
||||
string(REGEX MATCH "\n## +\\[([0-9.]+)(-([^] ]+))?\\] +.* +[0-9][0-9]?/" match_out "${changelog_file}")
|
||||
string(REGEX MATCH "\n## +\\[([0-9.]+)(-([^] ]+))?\\] *.* *[0-9][0-9]?/" match_out "${changelog_file}")
|
||||
|
||||
set(changelog_version "${CMAKE_MATCH_1}")
|
||||
|
||||
|
|
Loading…
Reference in New Issue