cdrkit: fix build with ccache

Cmake gets confused about ccache, so don't use ccache for cmake builds.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Peter Korsgaard 2011-01-20 21:23:23 +01:00
parent 525c918aa2
commit 464f862d82
1 changed files with 3 additions and 2 deletions

View File

@ -13,8 +13,9 @@ endif
# CMake doesn't support having the --sysroot option directly in the
# compiler path, so move this option to the CFLAGS/CXXFLAGS variables.
CDRKIT_TARGET_CC = $(filter-out --sysroot=%,$(TARGET_CC))
CDRKIT_TARGET_CXX = $(filter-out --sysroot=%,$(TARGET_CXX))
# It also gets confused by ccache, so don't use ccache here.
CDRKIT_TARGET_CC = $(filter-out --sysroot=%,$(TARGET_CC_NOCCACHE))
CDRKIT_TARGET_CXX = $(filter-out --sysroot=%,$(TARGET_CXX_NOCCACHE))
CDRKIT_TARGET_CFLAGS = $(filter --sysroot=%,$(TARGET_CC)) $(TARGET_CFLAGS)
CDRKIT_TARGET_CXXFLAGS = $(filter --sysroot=%,$(TARGET_CXX)) $(TARGET_CXXFLAGS)