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
__INIT_VARIABLE( NDK_CCACHE ENV_NDK_CCACHE )
if( NDK_CCACHE )
get_filename_component(NDK_CCACHE "${NDK_CCACHE}" ABSOLUTE)
set( NDK_CCACHE "${NDK_CCACHE}" CACHE PATH "The path to ccache binary" FORCE )
find_program(NDK_CCACHE "${NDK_CCACHE}" DOC "The path to ccache binary")
else()
unset( NDK_CCACHE )
endif()