diff options
author | Luis Felipe Dominguez Vega <ldominguezvega@gmail.com> | 2022-07-14 18:25:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-14 15:25:28 -0700 |
commit | 75ad050919b1d27f90b5e6332b9d446529c7cb31 (patch) | |
tree | 967a3111e1ddd82a0bc2eb6aa6c67768ed1f4de3 /cmake/GenerateVersion.cmake | |
parent | 001f19de2880192006eda139aa07c62a7f481422 (diff) | |
download | rneovim-75ad050919b1d27f90b5e6332b9d446529c7cb31.tar.gz rneovim-75ad050919b1d27f90b5e6332b9d446529c7cb31.tar.bz2 rneovim-75ad050919b1d27f90b5e6332b9d446529c7cb31.zip |
fix(build): fails if git is missing #19366
Generate empty file if git is missing.
Diffstat (limited to 'cmake/GenerateVersion.cmake')
-rw-r--r-- | cmake/GenerateVersion.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/GenerateVersion.cmake b/cmake/GenerateVersion.cmake index b88b31bddd..b9313f2498 100644 --- a/cmake/GenerateVersion.cmake +++ b/cmake/GenerateVersion.cmake @@ -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() |