Re: [cmake-developers] Compile targets affected by changeset

2017-05-22 Thread Florent Castelli
Depending on your setup and the amount of build machines, you may have even better results with sccache from Mozilla. It's a new implementation similar to ccache with an optional distributed cache in S3 or Redis. The downside is if you have long running tests in the list, it won't help you muc

Re: [cmake-developers] Compile targets affected by changeset

2017-05-22 Thread Craig Scott
I highly recommend Florent's suggestion. We use ccache on our CI system and for local development. We've stopped worrying about how long builds take now, since only files that are changed or that rely on things that changed contribute any meaningful amount to the build time. It also works for Make,

Re: [cmake-developers] Compile targets affected by changeset

2017-05-22 Thread Florent Castelli
> On 22 May 2017, at 20:07, Robert Patterson via cmake-developers > wrote: > > We understand that CMake and make already can rebuild targets which depend on > changed files, and this behavior works exactly as expected for us. Our issue > is not that make is rebuilding targets that it shouldn'

Re: [cmake-developers] Compile targets affected by changeset

2017-05-22 Thread Brad King
On 05/18/2017 05:48 PM, Robert Patterson via cmake-developers wrote: > we must have a preprocessing step (makedepend or gcc -M) Where in your example(s) does this step take place? > 'make' has a limitation where if 'make target1 target2 target3' is invoked, > target1, target2, and target3 are b

Re: [cmake-developers] Compile targets affected by changeset

2017-05-22 Thread Robert Patterson via cmake-developers
We understand that CMake and make already can rebuild targets which depend on changed files, and this behavior works exactly as expected for us. Our issue is not that make is rebuilding targets that it shouldn't. We would like this 'compile targets which changed' behavior to work from a clean st

Re: [cmake-developers] Compile targets affected by changeset

2017-05-19 Thread Ben Boeckel
On Thu, May 18, 2017 at 17:48:26 -0400, Robert Patterson via cmake-developers wrote: > 'make' has a limitation where if 'make target1 target2 target3' is > invoked, target1, target2, and target3 are built serially, not in > parallel. Well, this makes sense since there's no `-j` flag given. Are yo

Re: [cmake-developers] Compile targets affected by changeset

2017-05-18 Thread Simon Richter
Hi, On 18.05.2017 23:48, Robert Patterson via cmake-developers wrote: > My company has a large, predominately C++ codebase, with hundreds of > targets, both for product and unit tests. In an effort to improve the > compile and test time for developers, which utilizes a continuous > integration i

[cmake-developers] Compile targets affected by changeset

2017-05-18 Thread Robert Patterson via cmake-developers
Greetings,My company has a large, predominately C++ codebase, with hundreds of targets, both for product and unit tests.  In an effort to improve the compile and test time for developers, which utilizes a continuous integration infrastructure, it is desirable to compile only the targets that are af