Merge pull request #3052

1895755 cmake: remove duplicate find_package (selsta)
This commit is contained in:
luigi1111 2020-09-07 14:50:16 -05:00
commit 183c8084a5
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

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)