Merge remote-tracking branch 'origin/2.4' into merge-2.4
[profile/ivi/opencv.git] / cmake / templates / OpenCVConfig.cmake.in
index 183c669..14e3ffa 100644 (file)
@@ -42,7 +42,9 @@ if(ANDROID)
   string(REPLACE - _ modules_file_suffix "_${ANDROID_NDK_ABI_NAME}")
 endif()
 
-include(${CMAKE_CURRENT_LIST_DIR}/OpenCVModules${modules_file_suffix}.cmake)
+if(NOT TARGET opencv_core)
+  include(${CMAKE_CURRENT_LIST_DIR}/OpenCVModules${modules_file_suffix}.cmake)
+endif()
 
 # TODO All things below should be reviewed. What is about of moving this code into related modules (special vars/hooks/files)