1
0
Fork 0

Fix: [CMake] if the regex for STABLETAG is empty, it means it is stable

This feels a bit inside out, but it makes sense: if there are no
"beta1" or "RC1" mentions, it means it is a stable release.
pull/8921/head
Patric Stout 2021-04-01 13:04:34 +02:00 committed by Patric Stout
parent 9639e77297
commit 501087058e
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
set(REV_ISTAG 1)
string(REGEX REPLACE "^[0-9.]+$" "" STABLETAG "${TAG}")
if(NOT STABLETAG STREQUAL "")
if(STABLETAG STREQUAL "")
set(REV_ISSTABLETAG 1)
else()
set(REV_ISSTABLETAG 0)