Suppress Output of Git Command in CMake (#4340)
This commit is contained in:
@@ -28,6 +28,7 @@ if (GIT_EXECUTABLE)
|
|||||||
COMMAND ${GIT_EXECUTABLE} rev-parse --is-inside-work-tree
|
COMMAND ${GIT_EXECUTABLE} rev-parse --is-inside-work-tree
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
RESULT_VARIABLE GIT_REPOSITORY_NOT_FOUND
|
RESULT_VARIABLE GIT_REPOSITORY_NOT_FOUND
|
||||||
|
OUTPUT_QUIET
|
||||||
ERROR_QUIET
|
ERROR_QUIET
|
||||||
)
|
)
|
||||||
if (GIT_REPOSITORY_NOT_FOUND)
|
if (GIT_REPOSITORY_NOT_FOUND)
|
||||||
|
|||||||
Reference in New Issue
Block a user