From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Wed, 06 Mar 2013 20:52:23 +0100 Subject: [Buildroot] [PATCH 4/5] Enable ccache for cmake packages In-Reply-To: (Samuel Martin's message of "Wed, 6 Mar 2013 20:02:02 +0100") References: <1362590066-5448-1-git-send-email-luca@lucaceresoli.net> <1362590066-5448-5-git-send-email-luca@lucaceresoli.net> Message-ID: <877glk8fwo.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Samuel" == Samuel Martin writes: Samuel> Hi Lucas, Samuel> 2013/3/6 Luca Ceresoli : >> CMake fails in detecting the compiler when ccache is used. Add a wrapper >> script to make it happy. Samuel> It is possible to do this without any wrapper, setting Samuel> CMAKE_C_COMPILER and CMAKE_CXX_COMPILER to the ccache binary path, and Samuel> CMAKE_C_COMPILER_ARG1 and CMAKE_CXX_COMPILER_ARG1 to the actual Samuel> C-compiler, respectively to the C++-compiler. Samuel> BTW, note that we currently don't handle space in the paths at all; Samuel> hope that nobody triggers issues related to this ;) I bet a lot of (make based) build systems don't handle paths with spaces either. -- Bye, Peter Korsgaard