[CMake] Disabling RTTI in a portable way

Robert Dailey rcdailey at gmail.com
Fri Apr 3 10:57:56 EDT 2009


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.

On Fri, Apr 3, 2009 at 2:08 AM, Eric Noulard <eric.noulard at gmail.com> wrote:

> 2009/4/2 Robert Dailey <rcdailey at gmail.com>:
> > Is there a portable way of disabling Runtime Type Information (RTTI)
> through
> > CMake? I hope I don't have to strangle CMake too much to get this basic
> > functionality...
>
> Disabling rtti is a compiler dependent option:
>
> GCC: -fno-rtti
> Visual Studio/VCC: /GR-
> Intel C++: -fno-rtti
>
> etc...
>
> I do not currently know if CMake did abtract this away?
> --
> Erk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090403/c08025e9/attachment.htm>


More information about the CMake mailing list