diff options
author | Andrey Kamaev <andrey.kamaev@itseez.com> | 2012-12-23 15:54:59 +0400 |
---|---|---|
committer | Andrey Kamaev <andrey.kamaev@itseez.com> | 2012-12-23 15:54:59 +0400 |
commit | f53a3c52539fdff81b5ed535a9355525472cbfe3 (patch) | |
tree | a438d6a588cf1cd3fcb0c786f141e781b4dc5609 | |
parent | ace7d25645d22e5db91934441082b4df665c57fc (diff) | |
download | android-cmake-f53a3c52539fdff81b5ed535a9355525472cbfe3.tar.gz |
Fix ccache search when NDK_CCACHE is passed as CMake argument
-rw-r--r-- | android.toolchain.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android.toolchain.cmake b/android.toolchain.cmake index a282207..494bbae 100644 --- a/android.toolchain.cmake +++ b/android.toolchain.cmake @@ -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 ) |