mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 22:57:22 +00:00
cmake: Add SCM detection for Azure
This commit is contained in:
parent
cc3db2aa43
commit
14248685af
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,9 @@ if (DEFINED ENV{CI})
|
||||||
elseif(DEFINED ENV{APPVEYOR})
|
elseif(DEFINED ENV{APPVEYOR})
|
||||||
set(BUILD_REPOSITORY $ENV{APPVEYOR_REPO_NAME})
|
set(BUILD_REPOSITORY $ENV{APPVEYOR_REPO_NAME})
|
||||||
set(BUILD_TAG $ENV{APPVEYOR_REPO_TAG_NAME})
|
set(BUILD_TAG $ENV{APPVEYOR_REPO_TAG_NAME})
|
||||||
|
elseif(DEFINED ENV{AZURE})
|
||||||
|
set(BUILD_REPOSITORY $ENV{AZURE_REPO_NAME})
|
||||||
|
set(BUILD_TAG $ENV{AZURE_REPO_TAG})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
add_custom_command(OUTPUT scm_rev.cpp
|
add_custom_command(OUTPUT scm_rev.cpp
|
||||||
|
|
Loading…
Reference in a new issue