[CMake] how to add capability to generate preprocessed and not-yet-compiled files ?

Brad King brad.king at kitware.com
Tue Aug 8 14:05:40 EDT 2006


Alexander Neundorf wrote:
> Attached is a first try of a patch against 2.4 branch.
> It introduces two new variables CMAKE_CREATE_PREPROCESS_RULES and CMAKE_CREATE_ASSEMBLE_RULES. I think especially the name CMAKE_CREATE_ASSEMBLE_RULES is not good (since actually everything except assembling is done).
> The created files are named foo.o.E and foo.o.S (was easier than to replace the suffix.
> I know only the compiler switches for gcc, so I added them only in gcc.cmake.

I've committed changes similar to those in your patch to add this
feature.  The rules are always added and just print a message that they
are not implemented if a given platform does not provide the rule variables.

-Brad



More information about the CMake mailing list