<div class="gmail_quote">On Mon, Jun 1, 2009 at 2:12 PM, Sean Chittenden <span dir="ltr"><<a href="mailto:sean@chittenden.org">sean@chittenden.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ideally I'd like to see cmake(1) be able to issue the following commands:<br>
<br>
// Create foo_test<br>
gcc -o foo.o -c foo.c -DTESTING<br>
gcc -o foo_test foo.o<br>
<br>
// Create bar_test<br>
gcc -o foo.o -c foo.c<br>
gcc -o bar.o -c bar.c -DTESTING<br>
gcc -o bar_test foo.o bar.o<br>
<br>
<br>
That help clarify? set_target_property() still defines TESTING for both foo.c and bar.c and the bar_test case would break. Ideally I'd like to set a source property in the bar_test case, but don't know how to do that. I thought the scope property would do it. Can I somehow finagle this using an if() ?<br>
</blockquote>
<br>
Not that I know of.<br>
</blockquote>
<br></div>
Drat. Well... guess this is a feature request then: being able to set properties on a per source and per target (or test). :~]<br></blockquote><div><br>File the feature request in the CMake bugtracker if you like.<br>
<a href="http://public.kitware.com/Bug/my_view_page.php">http://public.kitware.com/Bug/my_view_page.php</a><br><br>I think what you're really asking for is the ability to set the COMPILE_FLAGS source file property on a per-target basis.<br>
</div></div><br>-- <br>Philip Lowman<br>