Fixed finding Git when cross-compiling.
authorRoman Donchenko <roman.donchenko@itseez.com>
Wed, 11 Sep 2013 13:54:34 +0000 (17:54 +0400)
committerRoman Donchenko <roman.donchenko@itseez.com>
Wed, 11 Sep 2013 13:54:34 +0000 (17:54 +0400)
CMakeLists.txt

index 9e3c95b..00c35a9 100644 (file)
@@ -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]*"