diff options
| author | 2021-12-21 16:07:27 -0800 | |
|---|---|---|
| committer | 2021-12-21 16:07:27 -0800 | |
| commit | b30a1d49ff42fa4207db85c4e4ba538f286065e7 (patch) | |
| tree | cea130c529ff5490a0baeaea557f779c25d88174 /CMakeModules | |
| parent | Merge pull request #7481 from german77/gyro-bias (diff) | |
| parent | Allow overriding SCM version info (diff) | |
| download | yuzu-b30a1d49ff42fa4207db85c4e4ba538f286065e7.tar.gz yuzu-b30a1d49ff42fa4207db85c4e4ba538f286065e7.tar.xz yuzu-b30a1d49ff42fa4207db85c4e4ba538f286065e7.zip | |
Merge pull request #7608 from Tatsh/scm-ver-override
Allow overriding SCM version info
Diffstat (limited to 'CMakeModules')
| -rw-r--r-- | CMakeModules/GenerateSCMRev.cmake | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/CMakeModules/GenerateSCMRev.cmake b/CMakeModules/GenerateSCMRev.cmake index 43ca730ec..c7da2b91d 100644 --- a/CMakeModules/GenerateSCMRev.cmake +++ b/CMakeModules/GenerateSCMRev.cmake | |||
| @@ -11,9 +11,15 @@ find_package(Git QUIET PATHS "${GIT_EXECUTABLE}") | |||
| 11 | 11 | ||
| 12 | # generate git/build information | 12 | # generate git/build information |
| 13 | include(GetGitRevisionDescription) | 13 | include(GetGitRevisionDescription) |
| 14 | get_git_head_revision(GIT_REF_SPEC GIT_REV) | 14 | if(NOT GIT_REF_SPEC) |
| 15 | git_describe(GIT_DESC --always --long --dirty) | 15 | get_git_head_revision(GIT_REF_SPEC GIT_REV) |
| 16 | git_branch_name(GIT_BRANCH) | 16 | endif() |
| 17 | if(NOT GIT_DESC) | ||
| 18 | git_describe(GIT_DESC --always --long --dirty) | ||
| 19 | endif() | ||
| 20 | if (NOT GIT_BRANCH) | ||
| 21 | git_branch_name(GIT_BRANCH) | ||
| 22 | endif() | ||
| 17 | get_timestamp(BUILD_DATE) | 23 | get_timestamp(BUILD_DATE) |
| 18 | 24 | ||
| 19 | # Generate cpp with Git revision from template | 25 | # Generate cpp with Git revision from template |