Avoid build falure in armeabi build with Android SDK
authorAndrey Kamaev <andrey.kamaev@itseez.com>
Fri, 1 Mar 2013 12:50:42 +0000 (16:50 +0400)
committerAndrey Kamaev <andrey.kamaev@itseez.com>
Fri, 1 Mar 2013 12:50:42 +0000 (16:50 +0400)
cmake/templates/OpenCVConfig.cmake.in

index e285eab..7441b59 100644 (file)
@@ -202,7 +202,7 @@ foreach(__opttype OPT DBG)
         #indicate that this module is also found
         string(TOUPPER "${__cvdep}" __cvdep)
         set(${__cvdep}_FOUND 1)
-      else()
+      elseif(EXISTS "${OpenCV_3RDPARTY_LIB_DIR_${__opttype}}/${OpenCV_${__cvdep}_LIBNAME_${__opttype}}")
         list(APPEND OpenCV_LIBS_${__opttype} "${OpenCV_3RDPARTY_LIB_DIR_${__opttype}}/${OpenCV_${__cvdep}_LIBNAME_${__opttype}}")
       endif()
     endforeach()