Fix build error if latest commit message contains double quotes
This commit is contained in:
parent
186fa924cf
commit
8fc129d003
1 changed files with 2 additions and 1 deletions
|
|
@ -12,7 +12,8 @@ git_current_branch(SRB2_COMP_BRANCH)
|
|||
git_working_tree_dirty(SRB2_COMP_UNCOMMITTED)
|
||||
|
||||
git_latest_commit(SRB2_COMP_REVISION)
|
||||
git_subject(SRB2_COMP_LASTCOMMIT)
|
||||
git_subject(subject)
|
||||
string(REGEX REPLACE "([\"\\])" "\\\\\\1" SRB2_COMP_LASTCOMMIT "${subject}")
|
||||
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/config.h.in" "${CMAKE_CURRENT_SOURCE_DIR}/src/config.h")
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/config.h.in" "${CMAKE_CURRENT_SOURCE_DIR}/build/src/config.h")
|
||||
|
|
|
|||
Loading…
Reference in a new issue