21 lines
731 B
Diff
21 lines
731 B
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 186c32b1..5cf9ce12 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -227,7 +227,6 @@ if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/.git")
|
||
|
else()
|
||
|
message(STATUS "Not a git repository, automatic version detection disabled.")
|
||
|
endif()
|
||
|
-version(PARSE _VERSION "${_VERSION}" REQUIRE "PATCH;TWEAK")
|
||
|
|
||
|
# Allow manual overrides of the detected version.
|
||
|
if(NOT ("${${PREFIX}VERSION}" STREQUAL ""))
|
||
|
@@ -244,6 +243,7 @@ if(NOT ("${${PREFIX}VERSION}" STREQUAL ""))
|
||
|
BUILD "${_VERSION_CFG_BUILD}"
|
||
|
)
|
||
|
endif()
|
||
|
+version(PARSE _VERSION "${_VERSION}" REQUIRE "PATCH;TWEAK")
|
||
|
|
||
|
set(_VERSION_THIN "${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}")
|
||
|
if(NOT (_VERSION_PRERELEASE STREQUAL ""))
|