From 8c9cea6413722054d0995f8d50482c468492c7ed Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sat, 31 Dec 2016 16:22:57 +0100 Subject: [PATCH] Fix nullversion recognition in gitversion --- src/gitversion/gitversion.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitversion/gitversion.cmake b/src/gitversion/gitversion.cmake index 4354f80e..e9110b9d 100644 --- a/src/gitversion/gitversion.cmake +++ b/src/gitversion/gitversion.cmake @@ -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)