Skip to content

Commit 8c1d6b6

Browse files
committed
Relax regex for extracting version from CHANGES
After v2023.8 2024-01-03 you have stopped appending the date to version in CHANGES file which means the newer ones are ignored when extracting the version for pkg-config module generation. Signed-off-by: Marcin Serwin <[email protected]>
1 parent d15277d commit 8c1d6b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/write_pkg_config.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
file(STRINGS ${CHANGES_FILE} CHANGES_CONTENT)
1717
string(
1818
REGEX
19-
MATCH "v[0-9]+(.[0-9]+)?(-dev)? [0-9]+-[0-9]+-[0-9]+"
19+
MATCH "v[0-9]+(.[0-9]+)?(-dev)?"
2020
FIRST_VERSION_LINE
2121
${CHANGES_CONTENT})
2222
string(
2323
REGEX
24-
REPLACE "^v([^ ]+) .+$" "\\1"
24+
REPLACE "^v([^ ]+)$" "\\1"
2525
CURRENT_VERSION
2626
"${FIRST_VERSION_LINE}")
2727
# If this is a development version, replace "-dev" by ".0" as pkg-config nor

0 commit comments

Comments
 (0)