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:
3d-gussner 2024-07-25 08:46:28 +02:00 committed by GitHub
commit cea5f70974
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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()