[CMake] Adding new language.

arrowdodger 6yearold at gmail.com
Tue Mar 15 04:53:40 EDT 2011


On Tue, Mar 15, 2011 at 1:44 AM, Michael Hertling <mhertling at online.de>wrote:

> To be exact, it's a rule variable which describes how to compile a C
> source file to an object file. On my system, it currently expands to:
>
> <CMAKE_C_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>
>
> AFAIK, these rule variables can be redefined and have the usual
> directory scope; the bracketed placeholders have a special meaning
> when the rule is used to generate command lines in a Makefile, e.g.
> So, you might set CMAKE_C_COMPILE_OBJECT in a directory to whatever
> is necessary to compile a C source file to byte code while you can
> refer to flags, preprocessor definitions and the source and object
> file via the placeholders. With just a few files to be byte-code-
> compiled, that's possibly more appropriate than defining a new
> language for this purpose.
>
> Regards,
>
> Michael


Thanks, it worked.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110315/6f00bc54/attachment.htm>


More information about the CMake mailing list