mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 02:12:56 -06:00
GenerateSCMRev: fix Travis compilation on repo forks
This commit is contained in:
parent
a9f58593d4
commit
b67be7154d
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ set(BUILD_VERSION "0")
|
||||||
if (BUILD_REPOSITORY)
|
if (BUILD_REPOSITORY)
|
||||||
# regex capture the string nightly or canary into CMAKE_MATCH_1
|
# regex capture the string nightly or canary into CMAKE_MATCH_1
|
||||||
string(REGEX MATCH "yuzu-emu/yuzu-?(.*)" OUTVAR ${BUILD_REPOSITORY})
|
string(REGEX MATCH "yuzu-emu/yuzu-?(.*)" OUTVAR ${BUILD_REPOSITORY})
|
||||||
if (${CMAKE_MATCH_COUNT} GREATER 0)
|
if ("${CMAKE_MATCH_COUNT}" GREATER 0)
|
||||||
# capitalize the first letter of each word in the repo name.
|
# capitalize the first letter of each word in the repo name.
|
||||||
string(REPLACE "-" ";" REPO_NAME_LIST ${CMAKE_MATCH_1})
|
string(REPLACE "-" ";" REPO_NAME_LIST ${CMAKE_MATCH_1})
|
||||||
foreach(WORD ${REPO_NAME_LIST})
|
foreach(WORD ${REPO_NAME_LIST})
|
||||||
|
|
Loading…
Reference in a new issue