Fix mistake

This commit is contained in:
Jonas Kvinge 2018-07-12 17:17:20 +02:00
parent 70db0a33d1
commit 2368fff243
1 changed files with 4 additions and 4 deletions

View File

@ -49,6 +49,10 @@ if(INCLUDE_GIT_REVISION AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
ERROR_QUIET
)
if(NOT ${GIT_CMD_RESULT_REVISION} EQUAL 0)
message(FATAL_ERROR "GIT command failed to get revision string '${GIT_REVISION}'")
endif()
endif()
if(FORCE_GIT_REVISION)
@ -57,10 +61,6 @@ endif()
if(GIT_REVISION)
if(NOT ${GIT_CMD_RESULT_REVISION} EQUAL 0)
message(FATAL_ERROR "GIT command failed to get revision string '${GIT_REVISION}'")
endif()
string(REGEX REPLACE "^(.+)-([0-9]+)-(g[a-f0-9]+)$" "\\1;\\2;\\3" GIT_PARTS ${GIT_REVISION})
if(NOT GIT_PARTS)