From 03926fac20a2983d8cbdcdb91c208aff642e80b6 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Wed, 11 Sep 2013 17:54:34 +0400 Subject: [PATCH] Fixed finding Git when cross-compiling. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e3c95be4..00c35a949 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -280,7 +280,7 @@ set(OPENCV_EXTRA_MODULES_PATH "" CACHE PATH "Where to look for additional OpenCV # ---------------------------------------------------------------------------- # Autodetect if we are in a GIT repository # ---------------------------------------------------------------------------- -find_package(Git QUIET) +find_host_package(Git QUIET) if(GIT_FOUND) execute_process(COMMAND "${GIT_EXECUTABLE}" describe --tags --always --dirty --match "2.[0-9].[0-9]*"