Commit 4e3bf15e authored by Simon Spannagel's avatar Simon Spannagel
Browse files

CMake: mark as usnkown version when git repo is present but executable is not found

parent 6bf3d7a9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ FUNCTION(get_version project_version)
            ENDIF()
        ELSE(GIT_FOUND)
            MESSAGE(STATUS "Git repository present, but could not find git executable.")
            SET(${project_version} "${${project_version}}-unknown")
        ENDIF(GIT_FOUND)
    ELSE(NOT source_package)
        # If we don't have git we can not really do anything