diff options
author | flow <flowlnlnln@gmail.com> | 2022-07-12 07:46:46 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 07:46:46 -0300 |
commit | e259bffca655b343b413a060482f550494b0090e (patch) | |
tree | 789520d9310856d44d7035d12d37b211a13c3008 /CMakeLists.txt | |
parent | 1a26a5365913787e051a7c6518f051bb71ba5cd5 (diff) | |
parent | cbc1aad58d21f5551f1405ea441cfa176bf56739 (diff) | |
download | PrismLauncher-e259bffca655b343b413a060482f550494b0090e.tar.gz PrismLauncher-e259bffca655b343b413a060482f550494b0090e.tar.bz2 PrismLauncher-e259bffca655b343b413a060482f550494b0090e.zip |
Merge pull request #810 from Scrumplex/refactor-launcher-version
Hide channel from version for tagged commits
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ad830af..c88a32ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -136,9 +136,11 @@ set(Launcher_CURSEFORGE_API_KEY "$2a$10$1Oqr2MX3O4n/ilhFGc597u8tfI3L2Hyr9/rtWDAM #### Check the current Git commit and branch include(GetGitRevisionDescription) +git_get_exact_tag(Launcher_GIT_TAG) get_git_head_revision(Launcher_GIT_REFSPEC Launcher_GIT_COMMIT) message(STATUS "Git commit: ${Launcher_GIT_COMMIT}") +message(STATUS "Git tag: ${Launcher_GIT_TAG}") message(STATUS "Git refspec: ${Launcher_GIT_REFSPEC}") set(Launcher_RELEASE_VERSION_NAME "${Launcher_VERSION_MAJOR}.${Launcher_VERSION_MINOR}.${Launcher_VERSION_HOTFIX}") |