Android toolchain: fixed ccache search

This commit is contained in:
Andrey Kamaev 2012-08-28 13:26:57 +04:00
parent bbbe77e05e
commit d421ec26e2

View File

@ -692,8 +692,7 @@ endif()
# ccache support # ccache support
__INIT_VARIABLE( NDK_CCACHE ENV_NDK_CCACHE ) __INIT_VARIABLE( NDK_CCACHE ENV_NDK_CCACHE )
if( NDK_CCACHE ) if( NDK_CCACHE )
get_filename_component(NDK_CCACHE "${NDK_CCACHE}" ABSOLUTE) find_program(NDK_CCACHE "${NDK_CCACHE}" DOC "The path to ccache binary")
set( NDK_CCACHE "${NDK_CCACHE}" CACHE PATH "The path to ccache binary" FORCE )
else() else()
unset( NDK_CCACHE ) unset( NDK_CCACHE )
endif() endif()