mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-24 06:07:46 +00:00
build: older git versions don't have '-C' flag
This commit is contained in:
parent
4cbb476cd1
commit
8a7e20f8a5
1 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ if(NOT MANUAL_SUBMODULES)
|
||||||
find_package(Git)
|
find_package(Git)
|
||||||
if(GIT_FOUND)
|
if(GIT_FOUND)
|
||||||
function (check_submodule relative_path)
|
function (check_submodule relative_path)
|
||||||
execute_process(COMMAND git -C ${relative_path} rev-parse "HEAD" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE localHead)
|
execute_process(COMMAND git rev-parse "HEAD" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${relative_path} OUTPUT_VARIABLE localHead)
|
||||||
execute_process(COMMAND git rev-parse "HEAD:${relative_path}" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE checkedHead)
|
execute_process(COMMAND git rev-parse "HEAD:${relative_path}" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE checkedHead)
|
||||||
string(COMPARE EQUAL "${localHead}" "${checkedHead}" upToDate)
|
string(COMPARE EQUAL "${localHead}" "${checkedHead}" upToDate)
|
||||||
if (upToDate)
|
if (upToDate)
|
||||||
|
|
Loading…
Reference in a new issue