Fix nullversion recognition in gitversion

This commit is contained in:
Sebastian Messmer 2016-12-31 16:22:57 +01:00
parent 2367cea204
commit 8c9cea6413
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ function (get_git_version OUTPUT_VARIABLE)
IF(NOT ${result} EQUAL 0)
MESSAGE(FATAL_ERROR "Error running versioneer. Return code is: ${result}, error message is: ${error}")
ENDIF()
IF("${STRIPPED_VERSION}" EQUAL "0+unknown")
IF("${STRIPPED_VERSION}" STREQUAL "0+unknown")
MESSAGE(FATAL_ERROR "Unable to find git version information. Please build directly from a git repository (i.e. after git clone).")
ENDIF()
endfunction(get_git_version)