From 1895755efbdce28883f95223413b30a414ce28ad Mon Sep 17 00:00:00 2001 From: selsta Date: Wed, 26 Aug 2020 02:58:55 +0200 Subject: [PATCH] cmake: remove duplicate find_package --- CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71fca00e..883eb014 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)