diff options
author | Dan Villiom Podlaski Christiansen <dan@magenta.dk> | 2020-06-05 03:42:31 +0200 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-06-30 09:43:00 +0100 |
commit | 70905ee82e4c341cbc0efb0ddb2d9508a6806b8c (patch) | |
tree | bf143b8165814c8f06029ecdbb68d9099f05522f | |
parent | c593893b56f310055c39c1d3c110a0843fc5ba8e (diff) | |
download | openttd-70905ee82e4c341cbc0efb0ddb2d9508a6806b8c.tar.xz |
Fix: fix building release tags
I tried building a tag, and got this error:
CMake Error at cmake/scripts/FindVersion.cmake:85 (string):
string sub-command REGEX, mode REPLACE: regex "^[0-9.]*$" matched an empty
string.
-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 d48664fc8..b53f77032 100644 --- a/cmake/scripts/FindVersion.cmake +++ b/cmake/scripts/FindVersion.cmake @@ -82,7 +82,7 @@ if (GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git") set(REV_VERSION "${TAG}") set(REV_ISTAG 1) - string(REGEX REPLACE "^[0-9.]*$" "" STABLETAG "${TAG}") + string(REGEX REPLACE "^[0-9.]+$" "" STABLETAG "${TAG}") if (NOT STABLETAG STREQUAL "") set(REV_ISSTABLETAG 1) else () |