<div class="gmail_quote">On Tue, Mar 3, 2009 at 3:54 PM, Leopold Palomo Avellaneda <span dir="ltr"><<a href="mailto:leo@alaxarxa.net">leo@alaxarxa.net</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">
> Hope that helps<br>
<br>
</div>Yes, sure. Thanks. It's not exactly what I wanted, but it will help me.<br>
<br>
Thanks a lot.<br>
<br>
Best regards,</blockquote><div><br>Another idea might be to use a function to add the flags with COMPILE_FLAGS to all of your targets except one of them that passes a special argument to the function... Of course then you have to modify every one of your CMakeLists.txt to call this special function.<br>
<br>(this is pseudo code but you probably get the idea):<br><br># Assume BLAH is the thing you want added everywhere except one target<br># have everyone call fixor_target(target) after creating a target, except for the one where you want the flags stripped, then call<br>
# fixor_target(target NOBLAH)<br>#<br>function(fixor_target _target)<br> if (${ARGN} list contains "NOBLAH") # use LIST(FIND... or STRING(MATCH ...<br> get_target_property(existing_compile_flags ${_target} COMPILE_FLAGS)<br>
set_target_properties(_target PROPERTIES COMPILE_FLAGS "${existing_compile_flags} -BLAH")<br> endif()<br>endfunction()<br></div></div><br clear="all"><br>-- <br>Philip Lowman<br>