Suppress Output of Git Command in CMake (#4340)

This commit is contained in:
nerix
2023-01-29 16:45:59 +01:00
committed by GitHub
parent 2a071a7067
commit bfa899c45e
+1
View File
@@ -28,6 +28,7 @@ if (GIT_EXECUTABLE)
COMMAND ${GIT_EXECUTABLE} rev-parse --is-inside-work-tree
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
RESULT_VARIABLE GIT_REPOSITORY_NOT_FOUND
OUTPUT_QUIET
ERROR_QUIET
)
if (GIT_REPOSITORY_NOT_FOUND)