This seems like something within the scope of the problem domain CMake was designed to address. It can be done differently for each compiler, which means CMake should create an abstraction for this. Perhaps a function like disable_rtti( target_name ), or some sort of target property.<br>
<br><div class="gmail_quote">On Fri, Apr 3, 2009 at 2:08 AM, Eric Noulard <span dir="ltr"><<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2009/4/2 Robert Dailey <<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>>:<br>
<div class="im">> Is there a portable way of disabling Runtime Type Information (RTTI) through<br>
> CMake? I hope I don't have to strangle CMake too much to get this basic<br>
> functionality...<br>
<br>
</div>Disabling rtti is a compiler dependent option:<br>
<br>
GCC: -fno-rtti<br>
Visual Studio/VCC: /GR-<br>
Intel C++: -fno-rtti<br>
<br>
etc...<br>
<br>
I do not currently know if CMake did abtract this away?<br>
<font color="#888888">--<br>
Erk<br>
</font></blockquote></div><br>