Skip to content

Commit d8a1a4f

Browse files
DasBlubxfurry
authored andcommitted
[s1942] CMake: strip the trailing newline from ${GIT_RESULT}
(based on commit [12414] - 70c4f60) Signed-off-by: Xfurry <[email protected]>
1 parent 682910e commit d8a1a4f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ if(GIT_EXECUTABLE)
202202
OUTPUT_VARIABLE GIT_REVISION
203203
RESULT_VARIABLE GIT_RESULT
204204
ERROR_QUIET
205+
OUTPUT_STRIP_TRAILING_WHITESPACE
205206
)
206207
if(GIT_RESULT)
207208
set(GIT_REVISION "Git repository not found")

src/shared/revision_nr.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#ifndef __REVISION_NR_H__
22
#define __REVISION_NR_H__
3-
#define REVISION_NR "1941"
3+
#define REVISION_NR "1942"
44
#endif // __REVISION_NR_H__

0 commit comments

Comments
 (0)