Fix ccache search in Android CMake toolchain.

This commit is contained in:
Andrey Kamaev 2012-12-19 16:50:08 +04:00
parent 35ac95930f
commit 8763ad6c99

View File

@ -1031,6 +1031,9 @@ endif()
# ccache support
__INIT_VARIABLE( _ndk_ccache NDK_CCACHE ENV_NDK_CCACHE )
if( _ndk_ccache )
if( DEFINED NDK_CCACHE AND NOT EXISTS NDK_CCACHE )
unset( NDK_CCACHE CACHE )
endif()
find_program( NDK_CCACHE "${_ndk_ccache}" DOC "The path to ccache binary")
else()
unset( NDK_CCACHE CACHE )