diff options
| author | 2020-01-16 10:00:43 -0500 | |
|---|---|---|
| committer | 2020-01-16 10:00:43 -0500 | |
| commit | a43ac8c79e5dae76a5a64f388045f0fa8c16b0cc (patch) | |
| tree | 886130420a22ae13106179ed4c25bb02ce260701 /CMakeModules/GenerateSCMRev.cmake | |
| parent | Merge pull request #3303 from lioncash/reorder (diff) | |
| parent | Fix git version in scm_rev.cpp (diff) | |
| download | yuzu-a43ac8c79e5dae76a5a64f388045f0fa8c16b0cc.tar.gz yuzu-a43ac8c79e5dae76a5a64f388045f0fa8c16b0cc.tar.xz yuzu-a43ac8c79e5dae76a5a64f388045f0fa8c16b0cc.zip | |
Merge pull request #3307 from jroweboy/fix-git
Fix git version in scm_rev.cpp
Diffstat (limited to 'CMakeModules/GenerateSCMRev.cmake')
| -rw-r--r-- | CMakeModules/GenerateSCMRev.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeModules/GenerateSCMRev.cmake b/CMakeModules/GenerateSCMRev.cmake index 21e03ae98..fa7ae835f 100644 --- a/CMakeModules/GenerateSCMRev.cmake +++ b/CMakeModules/GenerateSCMRev.cmake | |||
| @@ -5,6 +5,10 @@ function(get_timestamp _var) | |||
| 5 | endfunction() | 5 | endfunction() |
| 6 | 6 | ||
| 7 | list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/externals/cmake-modules") | 7 | list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/externals/cmake-modules") |
| 8 | |||
| 9 | # Find the package here with the known path so that the GetGit commands can find it as well | ||
| 10 | find_package(Git QUIET PATHS "${GIT_EXECUTABLE}") | ||
| 11 | |||
| 8 | # generate git/build information | 12 | # generate git/build information |
| 9 | include(GetGitRevisionDescription) | 13 | include(GetGitRevisionDescription) |
| 10 | get_git_head_revision(GIT_REF_SPEC GIT_REV) | 14 | get_git_head_revision(GIT_REF_SPEC GIT_REV) |