Ignore:
Timestamp:
2011-07-24T10:34:08+02:00 (5 years ago)
Author:
nbd
Message:

cmake: fix ccache command when using host ccache (patch from #9611)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/cmake.mk

    r27256 r27742  
    1616 endif 
    1717else 
    18   CMAKE_C_COMPILER:=$(STAGING_DIR_HOST)/bin/ccache 
     18  CCACHE:=$(shell which ccache) 
     19  ifeq ($(CCACHE),) 
     20    CCACHE:=$(STAGING_DIR_HOST)/bin/ccache 
     21  endif 
     22  CMAKE_C_COMPILER:=$(CCACHE) 
    1923  CMAKE_C_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CC)) 
    20   CMAKE_CXX_COMPILER:=$(STAGING_DIR_HOST)/bin/ccache 
     24  CMAKE_CXX_COMPILER:=$(CCACHE) 
    2125  CMAKE_CXX_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CXX)) 
    2226endif 
Note: See TracChangeset for help on using the changeset viewer.