mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Comptime.cmake: escape \backslashes and "quotes" in git subject line
This commit is contained in:
parent
e400625da8
commit
5bdbbd1695
1 changed files with 3 additions and 1 deletions
|
|
@ -9,9 +9,11 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Mo
|
||||||
include(GitUtilities)
|
include(GitUtilities)
|
||||||
|
|
||||||
git_current_branch(SRB2_COMP_BRANCH)
|
git_current_branch(SRB2_COMP_BRANCH)
|
||||||
git_summary(SRB2_COMP_REVISION)
|
|
||||||
git_working_tree_dirty(SRB2_COMP_UNCOMMITTED)
|
git_working_tree_dirty(SRB2_COMP_UNCOMMITTED)
|
||||||
|
|
||||||
|
git_summary(revision)
|
||||||
|
string(REGEX REPLACE "([\"\\])" "\\\\\\1" SRB2_COMP_REVISION "${revision}")
|
||||||
|
|
||||||
if("${CMAKE_BUILD_TYPE}" STREQUAL "")
|
if("${CMAKE_BUILD_TYPE}" STREQUAL "")
|
||||||
set(CMAKE_BUILD_TYPE None)
|
set(CMAKE_BUILD_TYPE None)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue