[CMake] Apply a patch using cmake

Alexander Neundorf a.neundorf-work at gmx.net
Mon Feb 28 15:27:50 EST 2011


On Monday 28 February 2011, Otmane Lahlou wrote:
> Hi all,
>
> Is there a way to apply a patch to my project sources using CMake?

Not quite sure what you wan to do...

The ExternalProject support has a patch step IIRC, so there you can apply a 
patch to some 3rd party package.

You can also simply use execute_process(COMMAND patch .... )
to apply a patch at cmake time.

Does that help ?

Alex


More information about the CMake mailing list