[CMake] Applying command to source files

Hendrik Sattler post at hendrik-sattler.de
Fri Nov 16 13:17:46 EST 2007


Am Freitag 16 November 2007 schrieb Eric Noulard:
> 2007/11/16, Juan Sanchez <Juan.Sanchez at amd.com>:
> > Shouldn't that be a script in your source code management tool?  For
> > example, the indentation policy will be enforced the moment the file is
> > checked in.
>
> Yes your are damn right, and I did this in the past.

There difference is that cmake tries to not change the source tree while you 
want to do exactly that. Especially since code beautifying doesn't help the 
compiler.

> But, the fact is the concerned project is hosted on a server
> where I have not enough privilege to run such scripts
> for security reason.
>
> I don't think that popular project hosting service
> like Sourceforge, BerliOS, Savannah do authorize such "user" scripts.

Sometimes, they do. You could ask.
If you cannot do this server-side, you can use a wrapper script around the 
commit command.

HS


More information about the CMake mailing list