From d3501f1545f7769fa63a1df12226164b22dd69a9 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Wed, 5 Sep 2012 16:25:14 +0400 Subject: [PATCH] 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. --- android/android.toolchain.cmake | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/android/android.toolchain.cmake b/android/android.toolchain.cmake index b8dd429e2c..c1a9d7d9b2 100644 --- a/android/android.toolchain.cmake +++ b/android/android.toolchain.cmake @@ -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 )