mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -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)
|
find_program(GIT_EXECUTABLE git)
|
||||||
if(NOT GIT_EXECUTABLE)
|
if(NOT GIT_EXECUTABLE)
|
||||||
message(AUTHOR_WARNING "Skipping version-string generation (cannot find git)")
|
message(AUTHOR_WARNING "Skipping version-string generation (cannot find git)")
|
||||||
|
file(WRITE "${OUTPUT}" "")
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user