mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-25 18:10:21 +08:00
[cmake]: Fix git not found issue
Change-Id: I887a019a08b74e86f4e69f066d5b6faebc6400cd Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -264,7 +264,7 @@ endif()
|
||||
# Create git version information
|
||||
# ----------------------------------------------------------------------------
|
||||
if(EXISTS "${PROJECT_SOURCE_DIR}/.git/")
|
||||
find_package(Git)
|
||||
find_host_package(Git)
|
||||
if(GIT_FOUND)
|
||||
# get author
|
||||
execute_process(COMMAND ${GIT_EXECUTABLE} log -1 --format=%an
|
||||
|
||||
Reference in New Issue
Block a user