diff options
author | Patric Stout <truebrain@openttd.org> | 2021-04-01 13:04:34 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-04-01 13:26:34 +0200 |
commit | 501087058ebd1565f17e08554cc70c56f52c0d79 (patch) | |
tree | 3c5381da3486f9dd70b2a099258daa483512cf91 /cmake | |
parent | 9639e7729719415fbc533c223a21827aaa3670f9 (diff) | |
download | openttd-501087058ebd1565f17e08554cc70c56f52c0d79.tar.xz |
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.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/scripts/FindVersion.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/scripts/FindVersion.cmake b/cmake/scripts/FindVersion.cmake index c920e6b8c..ebbe58244 100644 --- a/cmake/scripts/FindVersion.cmake +++ b/cmake/scripts/FindVersion.cmake @@ -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) |