mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
Android toolchain: restored explicit include_directories of system /usr/include
It is needed because of explicit STL include paths. Otherwise some standard headers (like fenv.h) can not not be correctly found by the compiler.
This commit is contained in:
parent
dcdbc638af
commit
d3501f1545
@ -1175,12 +1175,9 @@ if( DEFINED ANDROID_EXCEPTIONS AND ANDROID_STL_FORCE_FEATURES )
|
||||
endif()
|
||||
|
||||
# global includes and link directories
|
||||
if( ANDROID_STL_INCLUDE_DIRS )
|
||||
include_directories( SYSTEM ${ANDROID_STL_INCLUDE_DIRS} )
|
||||
endif()
|
||||
include_directories( SYSTEM "${ANDROID_SYSROOT}/usr/include" ${ANDROID_STL_INCLUDE_DIRS} )
|
||||
link_directories( "${CMAKE_INSTALL_PREFIX}/libs/${ANDROID_NDK_ABI_NAME}" )
|
||||
|
||||
|
||||
# set these global flags for cmake client scripts to change behavior
|
||||
set( ANDROID True )
|
||||
set( BUILD_ANDROID True )
|
||||
|
Loading…
Reference in New Issue
Block a user