mirror of
https://github.com/opencv/opencv.git
synced 2024-11-30 22:40:17 +08:00
Fixed Android SDK searching
This commit is contained in:
parent
355f6d0a73
commit
6c668dd704
@ -741,8 +741,16 @@ if (BUILD_JAVA_SUPPORT)
|
||||
SET(ANDROID_TOOLS_${line_name} "${line_value}")
|
||||
MARK_AS_ADVANCED(ANDROID_TOOLS_${line_name})
|
||||
endforeach()
|
||||
else()
|
||||
SET(ANDROID_TOOLS_Pkg_Desc "Android SDK Tools revision is less then 12. Please update your Android SDK.")
|
||||
endif()
|
||||
if (NOT ANDROID_TOOLS_Pkg_Revision)
|
||||
SET(ANDROID_TOOLS_Pkg_Revision "Unknown")
|
||||
MARK_AS_ADVANCED(ANDROID_TOOLS_Pkg_Revision)
|
||||
endif()
|
||||
if (NOT ANDROID_TOOLS_Pkg_Desc)
|
||||
SET(ANDROID_TOOLS_Pkg_Desc "Android SDK Tools, revision ${ANDROID_TOOLS_Pkg_Revision}.")
|
||||
if (NOT ANDROID_TOOLS_Pkg_Revision GREATER 11)
|
||||
SET(ANDROID_TOOLS_Pkg_Desc "${ANDROID_TOOLS_Pkg_Desc} It is recommended to update your SDK tools to revision 12 or newer.")
|
||||
endif()
|
||||
MARK_AS_ADVANCED(ANDROID_TOOLS_Pkg_Desc)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user