Lesson learned: DO NOT use STREQUAL in CMakeLists
@@ -84,7 +84,7 @@ IF(GIT_FOUND)
SET(VERSION_MINOR ${CMAKE_MATCH_2})
SET(VERSION_PATCH ${CMAKE_MATCH_3})
- IF(${VERSION_MAJOR} STREQUAL "")
+ IF(NOT VERSION_PATCH)
MESSAGE(STATUS "GIT Description is from NEW tag")
string(REGEX MATCH "v([0-9]+)\\.([0-9]+)" _dummy2 "${GIT_DESCRIPTION}")
SET(VERSION_MAJOR ${CMAKE_MATCH_1})
