From: Andrey Pavlenko Date: Mon, 17 Sep 2012 13:06:04 +0000 (+0400) Subject: fixing git commit getting for Android build X-Git-Tag: accepted/2.0/20130307.220821~364^2~210^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c4917555d7d3f512a7021dfe5a1c500d5228f6e;p=profile%2Fivi%2Fopencv.git fixing git commit getting for Android build --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 03bf4f3..f1c6c57 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -288,7 +288,7 @@ ocv_include_directories(${OPENCV_CONFIG_FILE_INCLUDE_DIR}) # don't use FindGit because it requires CMake 2.8.2 set(git_names git eg) # eg = easy git # Prefer .cmd variants on Windows unless running in a Makefile in the MSYS shell -if(WIN32) +if(CMAKE_HOST_WIN32) if(NOT CMAKE_GENERATOR MATCHES "MSYS") set(git_names git.cmd git eg.cmd eg) endif()