cmake.mk: fix support for ccache

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38853
This commit is contained in:
Felix Fietkau 2013-11-18 14:10:12 +00:00
parent cd1c8d463f
commit 9706d4e00e
1 changed files with 2 additions and 2 deletions

View File

@ -24,9 +24,9 @@ else
CCACHE:=$(STAGING_DIR_HOST)/bin/ccache
endif
CMAKE_C_COMPILER:=$(CCACHE)
CMAKE_C_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CC))
CMAKE_C_COMPILER_ARG1:=$(TARGET_CC_NOCACHE)
CMAKE_CXX_COMPILER:=$(CCACHE)
CMAKE_CXX_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CXX))
CMAKE_CXX_COMPILER_ARG1:=$(TARGET_CXX_NOCACHE)
endif
define Build/Configure/Default