return when OpenCV is found

pull/1794/head
Vincent Rabaud 12 years ago
parent 9007a02302
commit ee7c74ceeb
  1. 10
      cmake/templates/OpenCVConfig.cmake.in

@ -37,15 +37,17 @@
# #
# =================================================================================== # ===================================================================================
if(OpenCV_FOUND)
return()
endif()
set(OpenCV_FOUND TRUE)
set(modules_file_suffix "") set(modules_file_suffix "")
if(ANDROID) if(ANDROID)
string(REPLACE - _ modules_file_suffix "_${ANDROID_NDK_ABI_NAME}") string(REPLACE - _ modules_file_suffix "_${ANDROID_NDK_ABI_NAME}")
endif() endif()
if(NOT OpenCV_FOUND) include(${CMAKE_CURRENT_LIST_DIR}/OpenCVModules${modules_file_suffix}.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/OpenCVModules${modules_file_suffix}.cmake)
set(OpenCV_FOUND TRUE)
endif()
# TODO All things below should be reviewed. What is about of moving this code into related modules (special vars/hooks/files) # TODO All things below should be reviewed. What is about of moving this code into related modules (special vars/hooks/files)

Loading…
Cancel
Save