|
|
|
@ -65,11 +65,13 @@ if(NOT CMAKE_BUILD_TYPE)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(ANDROID OR IOS)
|
|
|
|
|
if(ANDROID AND ${CMAKE_SYSTEM_VERSION} VERSION_LESS "16")
|
|
|
|
|
message(FATAL_ERROR "Unsupport standalone toolchains with Android API level lower than 16")
|
|
|
|
|
elseif(${CMAKE_SYSTEM_VERSION} VERSION_LESS "21")
|
|
|
|
|
# TODO: support glog for Android api 16 ~ 19 in the future
|
|
|
|
|
message(WARNING "Using the unofficial git repository <https://github.com/Xreki/glog.git> instead")
|
|
|
|
|
if(ANDROID)
|
|
|
|
|
if(AND ${CMAKE_SYSTEM_VERSION} VERSION_LESS "16")
|
|
|
|
|
message(FATAL_ERROR "Unsupport standalone toolchains with Android API level lower than 16")
|
|
|
|
|
elseif(${CMAKE_SYSTEM_VERSION} VERSION_LESS "21")
|
|
|
|
|
# TODO: support glog for Android api 16 ~ 19 in the future
|
|
|
|
|
message(WARNING "Using the unofficial git repository <https://github.com/Xreki/glog.git> instead")
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
set(WITH_GPU OFF CACHE STRING
|
|
|
|
|