diff --git a/cmake/OpenCVUtils.cmake b/cmake/OpenCVUtils.cmake index 65029ddbff..fae91c165f 100644 --- a/cmake/OpenCVUtils.cmake +++ b/cmake/OpenCVUtils.cmake @@ -1624,7 +1624,7 @@ endif() macro(ocv_git_describe var_name path) if(GIT_FOUND) - execute_process(COMMAND "${GIT_EXECUTABLE}" describe --tags --tags --exact-match --dirty + execute_process(COMMAND "${GIT_EXECUTABLE}" describe --tags --exact-match --dirty WORKING_DIRECTORY "${path}" OUTPUT_VARIABLE ${var_name} RESULT_VARIABLE GIT_RESULT