summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2014-02-05 17:22:35 +0100
committerEdward Hervey <bilboed@bilboed.com>2014-02-06 13:25:42 +0100
commit45193a7cff42993d109f59a67fe8c4b987e7f288 (patch)
treedcd1bcc5d98d3316eb08dddaa3b088f8a6fc90c7
parenta91a9ca0a9d3dca38abd3b8af348ec4f37066a20 (diff)
cmake: fix replacement of ccache in CC and CXX
-rw-r--r--cerbero/build/build.py4
1 files 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 '