Commit c016c43d authored by Roman Donchenko's avatar Roman Donchenko

Fixed Android SDK build - again.

parent 55ede740
...@@ -76,7 +76,9 @@ endif() ...@@ -76,7 +76,9 @@ endif()
set(modules_file_suffix "") set(modules_file_suffix "")
if(ANDROID) if(ANDROID)
set(modules_file_suffix "-${ANDROID_NDK_ABI_NAME}") # the REPLACE here is needed, because OpenCVModules_armeabi.cmake includes
# OpenCVModules_armeabi-*.cmake, which would match OpenCVModules_armeabi-v7a*.cmake.
string(REPLACE - _ modules_file_suffix "_${ANDROID_NDK_ABI_NAME}")
endif() endif()
export(TARGETS ${OpenCVModules_TARGETS} FILE "${CMAKE_BINARY_DIR}/OpenCVModules${modules_file_suffix}.cmake") export(TARGETS ${OpenCVModules_TARGETS} FILE "${CMAKE_BINARY_DIR}/OpenCVModules${modules_file_suffix}.cmake")
......
...@@ -36,12 +36,13 @@ ...@@ -36,12 +36,13 @@
# #
# =================================================================================== # ===================================================================================
if(NOT ANDROID) set(modules_file_suffix "")
include(${CMAKE_CURRENT_LIST_DIR}/OpenCVModules.cmake) if(ANDROID)
else() string(REPLACE - _ modules_file_suffix "_${ANDROID_NDK_ABI_NAME}")
include(${CMAKE_CURRENT_LIST_DIR}/OpenCVModules-${ANDROID_NDK_ABI_NAME}.cmake)
endif() endif()
include(${CMAKE_CURRENT_LIST_DIR}/OpenCVModules${modules_file_suffix}.cmake)
# 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)
# Version Compute Capability from which OpenCV has been compiled is remembered # Version Compute Capability from which OpenCV has been compiled is remembered
......
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