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)