mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
fix(build): fails if git is missing #19366
Generate empty file if git is missing.
This commit is contained in:
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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user