mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00
Check ZEEK_VERSION_LOCAL for dashes
Insist that ZEEK_VERSION_LOCAL not contain dashes in order to preserve overall structure of version strings.
This commit is contained in:
parent
32289521f5
commit
5e3008df89
1 changed files with 4 additions and 0 deletions
|
@ -580,6 +580,10 @@ string(REGEX REPLACE "[^a-zA-Z0-9_\$]" "_" VERSION_C_IDENT "${VERSION_C_IDENT}")
|
|||
|
||||
set(ZEEK_VERSION_FULL_LOCAL "${ZEEK_VERSION_FULL}")
|
||||
if (NOT ZEEK_VERSION_LOCAL STREQUAL "")
|
||||
# STRING(FIND ZEEK_VERSION_LOCAL "-" POS)
|
||||
if (ZEEK_VERSION_LOCAL MATCHES "-")
|
||||
message(FATAL_ERROR "ZEEK_VERSION_LOCAL can not contain dashes: ${ZEEK_VERSION_LOCAL}")
|
||||
endif ()
|
||||
set(ZEEK_VERSION_FULL_LOCAL "${ZEEK_VERSION_FULL_LOCAL}-${ZEEK_VERSION_LOCAL}")
|
||||
set(VERSION_C_IDENT "${VERSION_C_IDENT}_${ZEEK_VERSION_LOCAL}")
|
||||
endif ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue