cmake.mk: fix support for ccache
authorFelix Fietkau <nbd@openwrt.org>
Mon, 18 Nov 2013 14:10:12 +0000 (14:10 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 18 Nov 2013 14:10:12 +0000 (14:10 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38853

include/cmake.mk

index 774632111fbeb26418261149c31e49d5fe24bf94..a2ac62fcae170ebef5d9b594b9d19da592ff3cbb 100644 (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