Fail build if gitversion cannot be found
This commit is contained in:
parent
4627666788
commit
f0d11bb5a7
@ -11,4 +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")
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user