Merge pull request #4710 from Tirpitz93/fix-dev-and-dirty-cmake
Fix String substitution when `DEV` flavour is built dirty
This commit is contained in:
commit
cea5f70974
|
|
@ -240,7 +240,7 @@ function(git_describe_working_tree _var)
|
|||
set(out "${out}-${res}-NOTFOUND")
|
||||
endif()
|
||||
if( "${out}" MATCHES "-D\$")
|
||||
STRING(REPLACE "-D" "-${COMMIT_COUNT}-D" out "${out}")
|
||||
STRING(REGEX REPLACE "-D\$" "-${COMMIT_COUNT}-D" out "${out}")
|
||||
else()
|
||||
set(out "${out}-${COMMIT_COUNT}")
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in New Issue