mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
fix failing CMake build when "git" is not installed
This commit is contained in:
+2
-1
@@ -6,7 +6,8 @@ function(get_git_hash _git_hash)
|
||||
OUTPUT_VARIABLE GIT_HASH
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
else()
|
||||
endif()
|
||||
if(NOT GIT_HASH)
|
||||
set(GIT_HASH "NO_GIT_COMMIT_HASH_DEFINED")
|
||||
endif()
|
||||
set(${_git_hash} "${GIT_HASH}" PARENT_SCOPE)
|
||||
|
||||
Reference in New Issue
Block a user