summaryrefslogtreecommitdiff
path: root/CMakeModules
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeModules')
-rw-r--r--CMakeModules/GenerateSCMRev.cmake9
1 files changed, 1 insertions, 8 deletions
diff --git a/CMakeModules/GenerateSCMRev.cmake b/CMakeModules/GenerateSCMRev.cmake
index 743b14407..78728e08b 100644
--- a/CMakeModules/GenerateSCMRev.cmake
+++ b/CMakeModules/GenerateSCMRev.cmake
@@ -16,14 +16,7 @@ get_timestamp(BUILD_DATE)
16# Also if this is a CI build, add the build name (ie: Nightly, Canary) to the scm_rev file as well 16# Also if this is a CI build, add the build name (ie: Nightly, Canary) to the scm_rev file as well
17set(REPO_NAME "") 17set(REPO_NAME "")
18set(BUILD_VERSION "0") 18set(BUILD_VERSION "0")
19if ($ENV{CI}) 19if (BUILD_REPOSITORY)
20 if ($ENV{TRAVIS})
21 set(BUILD_REPOSITORY $ENV{TRAVIS_REPO_SLUG})
22 set(BUILD_TAG $ENV{TRAVIS_TAG})
23 elseif($ENV{APPVEYOR})
24 set(BUILD_REPOSITORY $ENV{APPVEYOR_REPO_NAME})
25 set(BUILD_TAG $ENV{APPVEYOR_REPO_TAG_NAME})
26 endif()
27 # regex capture the string nightly or canary into CMAKE_MATCH_1 20 # regex capture the string nightly or canary into CMAKE_MATCH_1
28 string(REGEX MATCH "yuzu-emu/yuzu-?(.*)" OUTVAR ${BUILD_REPOSITORY}) 21 string(REGEX MATCH "yuzu-emu/yuzu-?(.*)" OUTVAR ${BUILD_REPOSITORY})
29 if (${CMAKE_MATCH_COUNT} GREATER 0) 22 if (${CMAKE_MATCH_COUNT} GREATER 0)