1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-17 14:33:19 +01:00

cmake: remove duplicate find_package

This commit is contained in:
selsta 2020-08-26 02:58:55 +02:00
parent e65159163d
commit 1895755efb
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E

View File

@ -60,7 +60,6 @@ endfunction()
find_package(Git)
if(GIT_FOUND)
if(NOT DEV_MODE)
find_package(Git)
function (check_submodule relative_path)
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)