We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff69b94 commit 1f1405bCopy full SHA for 1f1405b
git/CMakeLists.txt
@@ -9,7 +9,9 @@ execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
9
OUTPUT_VARIABLE git_rev OUTPUT_STRIP_TRAILING_WHITESPACE)
10
execute_process(COMMAND ${GIT_EXECUTABLE} status --porcelain
11
OUTPUT_VARIABLE git_porcelain OUTPUT_STRIP_TRAILING_WHITESPACE)
12
+if(git_porcelain)
13
string(REGEX REPLACE "\n" " " git_porcelain ${git_porcelain})
14
+endif(git_porcelain)
15
else()
16
set(git_branch)
17
set(git_rev)
0 commit comments