hidden visibility

Stephen Kelly steveire at gmail.com
Fri Feb 17 17:08:24 UTC 2012


Alexander Neundorf wrote:

> Hi Stephen,
> 
> with your export header stuff you did for cmake 2.8.7, you must have done
> a lot with the symbol visibility stuff.
> 
> Is there now a cmake module which I can use to check whether visibility is
> supported by the current compiler ?
> 

The current implementation is there since 2.8.6 in 
Modules/GenerateExportHeader.cmake.

COMPILER_HAS_HIDDEN_VISIBILITY

is true if it has visibility.

USE_COMPILER_HIDDEN_VISIBILITY 

is an option the user can set to disable using it (default ON).

Thanks,

Steve.




More information about the Kde-buildsystem mailing list