From 0adbead654e49ec352ab4bb21cf112d47a44ab71 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Tue, 28 Aug 2012 20:39:10 +0400 Subject: [PATCH] Android toolchain: fix CCache program search --- android/android.toolchain.cmake | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/android/android.toolchain.cmake b/android/android.toolchain.cmake index 47918ad..b4d498f 100644 --- a/android/android.toolchain.cmake +++ b/android/android.toolchain.cmake @@ -690,12 +690,13 @@ if( BUILD_WITH_ANDROID_NDK ) endif() # ccache support -__INIT_VARIABLE( NDK_CCACHE ENV_NDK_CCACHE ) -if( NDK_CCACHE ) - find_program(NDK_CCACHE "${NDK_CCACHE}" DOC "The path to ccache binary") +__INIT_VARIABLE( _ndk_ccache NDK_CCACHE ENV_NDK_CCACHE ) +if( _ndk_ccache ) + find_program( NDK_CCACHE "${_ndk_ccache}" DOC "The path to ccache binary") else() - unset( NDK_CCACHE ) + unset( NDK_CCACHE CACHE ) endif() +unset( _ndk_ccache ) # specify the cross compiler if( NDK_CCACHE ) -- 2.7.4