mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-22 06:15:42 +01:00
Fix git version in scm_rev.cpp
This commit is contained in:
parent
64cd46579b
commit
b429095b61
@ -5,6 +5,10 @@ function(get_timestamp _var)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/externals/cmake-modules")
|
list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/externals/cmake-modules")
|
||||||
|
|
||||||
|
# Find the package here with the known path so that the GetGit commands can find it as well
|
||||||
|
find_package(Git QUIET PATHS "${GIT_EXECUTABLE}")
|
||||||
|
|
||||||
# generate git/build information
|
# generate git/build information
|
||||||
include(GetGitRevisionDescription)
|
include(GetGitRevisionDescription)
|
||||||
get_git_head_revision(GIT_REF_SPEC GIT_REV)
|
get_git_head_revision(GIT_REF_SPEC GIT_REV)
|
||||||
|
@ -15,6 +15,10 @@ endif ()
|
|||||||
if (DEFINED ENV{DISPLAYVERSION})
|
if (DEFINED ENV{DISPLAYVERSION})
|
||||||
set(DISPLAY_VERSION $ENV{DISPLAYVERSION})
|
set(DISPLAY_VERSION $ENV{DISPLAYVERSION})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
# Pass the path to git to the GenerateSCMRev.cmake as well
|
||||||
|
find_package(Git QUIET)
|
||||||
|
|
||||||
add_custom_command(OUTPUT scm_rev.cpp
|
add_custom_command(OUTPUT scm_rev.cpp
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
-DSRC_DIR="${CMAKE_SOURCE_DIR}"
|
-DSRC_DIR="${CMAKE_SOURCE_DIR}"
|
||||||
@ -23,6 +27,7 @@ add_custom_command(OUTPUT scm_rev.cpp
|
|||||||
-DTITLE_BAR_FORMAT_RUNNING="${TITLE_BAR_FORMAT_RUNNING}"
|
-DTITLE_BAR_FORMAT_RUNNING="${TITLE_BAR_FORMAT_RUNNING}"
|
||||||
-DBUILD_TAG="${BUILD_TAG}"
|
-DBUILD_TAG="${BUILD_TAG}"
|
||||||
-DBUILD_ID="${DISPLAY_VERSION}"
|
-DBUILD_ID="${DISPLAY_VERSION}"
|
||||||
|
-DGIT_EXECUTABLE="${GIT_EXECUTABLE}"
|
||||||
-P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake"
|
-P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake"
|
||||||
DEPENDS
|
DEPENDS
|
||||||
# WARNING! It was too much work to try and make a common location for this list,
|
# WARNING! It was too much work to try and make a common location for this list,
|
||||||
|
Loading…
Reference in New Issue
Block a user