Skip to content

Commit

Permalink
Add help text to cmake git describe error message (#8123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasdoe authored Nov 18, 2023
1 parent 91a3172 commit a228e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMake/Version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
message(WARNING "\"${GIT_DESCRIBE_DIRTY}\" does not match pattern v<major>.<minor>.<patch>-<commit>")
endif()
else()
message(WARNING "git describe failed with exit code: ${GIT_DESCRIBE_RESULT}")
message(WARNING "git describe failed with exit code: ${GIT_DESCRIBE_RESULT}\nMake sure you cloned with tags or run 'git fetch --tags'.")
endif()
else()
message(WARNING "git is not found")
Expand Down

0 comments on commit a228e8c

Please sign in to comment.