From c10c8db97dcc8a9cac085c458b40ae74a7cbb2cd Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Sat, 6 Feb 2016 15:19:28 +0300 Subject: [PATCH] cmake: skip checks for host paths on cross-compilation (5897) --- cmake/OpenCVFindLibsVideo.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/OpenCVFindLibsVideo.cmake b/cmake/OpenCVFindLibsVideo.cmake index 2e09cf24b..64642daa2 100644 --- a/cmake/OpenCVFindLibsVideo.cmake +++ b/cmake/OpenCVFindLibsVideo.cmake @@ -214,7 +214,7 @@ if(WITH_FFMPEG) CHECK_INCLUDE_FILE(libavformat/avformat.h HAVE_GENTOO_FFMPEG) CHECK_INCLUDE_FILE(ffmpeg/avformat.h HAVE_FFMPEG_FFMPEG) if(NOT HAVE_GENTOO_FFMPEG AND NOT HAVE_FFMPEG_FFMPEG) - if(EXISTS /usr/include/ffmpeg/libavformat/avformat.h OR HAVE_FFMPEG_SWSCALE) + if((NOT CMAKE_CROSSCOMPILING AND EXISTS /usr/include/ffmpeg/libavformat/avformat.h) OR HAVE_FFMPEG_SWSCALE) set(HAVE_GENTOO_FFMPEG TRUE) endif() endif()