Skip to content

Commit 695ba5d

Browse files
committed
Fix String substitution when DEV flavour is built with a dirty local version both instances of -D were replaced with commit count
1 parent e405e91 commit 695ba5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/GetGitRevisionDescription.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function(git_describe_working_tree _var)
240240
set(out "${out}-${res}-NOTFOUND")
241241
endif()
242242
if( "${out}" MATCHES "-D\$")
243-
STRING(REPLACE "-D" "-${COMMIT_COUNT}-D" out "${out}")
243+
STRING(REGEX REPLACE "-D\$" "-${COMMIT_COUNT}-D" out "${out}")
244244
else()
245245
set(out "${out}-${COMMIT_COUNT}")
246246
endif()

0 commit comments

Comments
 (0)