diff options
author | Darrell Anderson <[email protected]> | 2012-10-22 20:17:29 -0500 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2012-10-22 20:17:29 -0500 |
commit | 9629c73d02ba21d0683221d6af4f0238d10d526b (patch) | |
tree | a73ce14bfcea05b1e0e6fc4474e827974e3d04da /ConfigureChecks.cmake | |
parent | 28319c423daa5e2d3129f0133b7f0de32cc4ee4a (diff) | |
download | tdegraphics-9629c73d02ba21d0683221d6af4f0238d10d526b.tar.gz tdegraphics-9629c73d02ba21d0683221d6af4f0238d10d526b.zip |
Add cmake support for WITH_GCC_VISIBILITY.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 2924909e..88f6dccb 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -9,6 +9,20 @@ # ################################################# +##### check for gcc visibility support ######### +# FIXME +# This should check for [T]Qt3 visibility support + +if( WITH_GCC_VISIBILITY ) + if( NOT UNIX ) + tde_message_fatal(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" ) + endif( NOT UNIX ) + set( __KDE_HAVE_GCC_VISIBILITY 1 ) + set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden") + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden") +endif( ) + + tde_setup_architecture_flags( ) # freetype2 |