On Tue, Mar 15, 2011 at 1:44 AM, Michael Hertling <span dir="ltr"><<a href="mailto:mhertling@online.de">mhertling@online.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">To be exact, it's a rule variable which describes how to compile a C<br></div></div>
source file to an object file. On my system, it currently expands to:<br>
<br>
<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE><br>
<br>
AFAIK, these rule variables can be redefined and have the usual<br>
directory scope; the bracketed placeholders have a special meaning<br>
when the rule is used to generate command lines in a Makefile, e.g.<br>
So, you might set CMAKE_C_COMPILE_OBJECT in a directory to whatever<br>
is necessary to compile a C source file to byte code while you can<br>
refer to flags, preprocessor definitions and the source and object<br>
file via the placeholders. With just a few files to be byte-code-<br>
compiled, that's possibly more appropriate than defining a new<br>
language for this purpose.<br>
<br>
Regards,<br>
<font color="#888888"><br>
Michael</font></blockquote><div> </div><div>Thanks, it worked. <br></div></div>