diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-02-06 21:55:14 -0300 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-02-06 22:23:41 -0300 |
commit | dfd14618f7cde84caf15f3b56ee14800f2509ebc (patch) | |
tree | dddd4ab0851516f67c11d1121e8f233c9f0bafd3 /CMakeModules/GenerateSCMRev.cmake | |
parent | d0ac62440395566f8a68a7b6d8cb2038094aba7d (diff) |
cmake: Fix title bar issue
Diffstat (limited to 'CMakeModules/GenerateSCMRev.cmake')
-rw-r--r-- | CMakeModules/GenerateSCMRev.cmake | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/CMakeModules/GenerateSCMRev.cmake b/CMakeModules/GenerateSCMRev.cmake index 743b14407c..78728e08b0 100644 --- a/CMakeModules/GenerateSCMRev.cmake +++ b/CMakeModules/GenerateSCMRev.cmake @@ -16,14 +16,7 @@ get_timestamp(BUILD_DATE) # Also if this is a CI build, add the build name (ie: Nightly, Canary) to the scm_rev file as well set(REPO_NAME "") set(BUILD_VERSION "0") -if ($ENV{CI}) - if ($ENV{TRAVIS}) - set(BUILD_REPOSITORY $ENV{TRAVIS_REPO_SLUG}) - set(BUILD_TAG $ENV{TRAVIS_TAG}) - elseif($ENV{APPVEYOR}) - set(BUILD_REPOSITORY $ENV{APPVEYOR_REPO_NAME}) - set(BUILD_TAG $ENV{APPVEYOR_REPO_TAG_NAME}) - endif() +if (BUILD_REPOSITORY) # regex capture the string nightly or canary into CMAKE_MATCH_1 string(REGEX MATCH "yuzu-emu/yuzu-?(.*)" OUTVAR ${BUILD_REPOSITORY}) if (${CMAKE_MATCH_COUNT} GREATER 0) |