From 501087058ebd1565f17e08554cc70c56f52c0d79 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Thu, 1 Apr 2021 13:04:34 +0200 Subject: 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. --- cmake/scripts/FindVersion.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake') 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) -- cgit v1.2.3-54-g00ecf