commit 75ad050919b1d27f90b5e6332b9d446529c7cb31
parent 001f19de2880192006eda139aa07c62a7f481422
Author: Luis Felipe Dominguez Vega <ldominguezvega@gmail.com>
Date: Thu, 14 Jul 2022 18:25:28 -0400
fix(build): fails if git is missing #19366
Generate empty file if git is missing.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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()