[CMake] avoiding complete rebuild when the user changes

2012-04-18 Thread pellegrini
Dear CMakers, I introduced recently a colleague of mine to the wonders of cmake. He has a problem that neither he or me could solve. When he cmakes and builds his project as root and builds subsenquently its project as himself the whole project is rebuilt even if nothing has been changed.

Re: [CMake] avoiding complete rebuild when the user changes

2012-04-18 Thread Eric Noulard
2012/4/18 pellegrini pellegr...@ill.fr: Dear CMakers, I introduced recently a colleague of mine to the wonders of cmake. He has a problem that neither he or me could solve. When he cmakes and builds his project as root and builds subsenquently  its project as himself the whole project is

Re: [CMake] avoiding complete rebuild when the user changes

2012-04-18 Thread David Cole
On Wed, Apr 18, 2012 at 7:00 AM, Eric Noulard eric.noul...@gmail.comwrote: 2012/4/18 pellegrini pellegr...@ill.fr: Dear CMakers, I introduced recently a colleague of mine to the wonders of cmake. He has a problem that neither he or me could solve. When he cmakes and builds his

Re: [CMake] avoiding complete rebuild when the user changes

2012-04-18 Thread Eric Noulard
2012/4/18 Laurent Chapon cha...@ill.fr: Dear all, thanks for all your comments. I think the exact situation is not quite like it was explained in the first place: - The steps are as follows: 1) checkout the code somewhere, create a build directory and then cmake.. 2) Build using the usual