From 45193a7cff42993d109f59a67fe8c4b987e7f288 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Wed, 5 Feb 2014 17:22:35 +0100 Subject: cmake: fix replacement of ccache in CC and CXX --- cerbero/build/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cerbero/build/build.py b/cerbero/build/build.py index 1a8468dc..be5265cd 100644 --- a/cerbero/build/build.py +++ b/cerbero/build/build.py @@ -300,8 +300,8 @@ class CMake (MakefilesBase): cxxflags = os.environ.get('CXXFLAGS', '') # FIXME: CMake doesn't support passing "ccache $CC" if self.config.use_ccache: - cc = cc.replace('ccache ', '') - cxx = cxx.replace('ccache ', '') + cc = cc.replace('ccache', '').strip() + cxx = cxx.replace('ccache', '').strip() if self.config.target_platform == Platform.WINDOWS: self.configure_options += ' -DCMAKE_SYSTEM_NAME=Windows ' -- cgit v1.2.3