[CMake] CMakeFiles/Progress

Brad King brad.king at kitware.com
Thu Oct 12 09:27:46 EDT 2006


Andreas Schneider wrote:
> if I install my project with "sudo make install" why changes the owner
> of CMakeFiles/Progress and its contents to root?
> 
> The next time I recompile as a user I have no progress status, cause the
> user isn't able to write to counts.txt.
> 
> Is this a bug? :)

Yes, definately.  Progress is implemented by using a directory with
files in it to count make steps that have occurred.  When make starts
there is a rule to wipe out the directory and recreate it to reset
progress to zero.  The make process's progress stuff is running as root
when you use sudo so it deletes and recreates the directory with root
ownership.

Ken, we should probably make the final progress report remove the
directory so that it is not left behind with root ownership.

-Brad


More information about the CMake mailing list