Commit ee7c74ce authored by Vincent Rabaud's avatar Vincent Rabaud

return when OpenCV is found

parent 9007a023
...@@ -37,15 +37,17 @@ ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment