Fixed finding Git when cross-compiling.

pull/1436/head
Roman Donchenko 11 years ago
parent acc2ca484c
commit 03926fac20
  1. 2
      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]*"

Loading…
Cancel
Save