mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix(build): fails if git is missing #19366
Generate empty file if git is missing.
This commit is contained in:
committed by
GitHub
parent
001f19de28
commit
75ad050919
@ -8,6 +8,7 @@ endif()
|
||||
find_program(GIT_EXECUTABLE git)
|
||||
if(NOT GIT_EXECUTABLE)
|
||||
message(AUTHOR_WARNING "Skipping version-string generation (cannot find git)")
|
||||
file(WRITE "${OUTPUT}" "")
|
||||
return()
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user