diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-10-26 15:27:33 -0500 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2012-10-26 15:27:33 -0500 |
commit | 32bc4202791453c8b063881c5ba34ed2734525a0 (patch) | |
tree | 84ead7cd85b0644144540cac91c3abd285f224b0 | |
parent | 1b4d7e5468d0a6f0f960878e8a3f110b0cdba51a (diff) | |
download | kbfx-32bc4202791453c8b063881c5ba34ed2734525a0.tar.gz kbfx-32bc4202791453c8b063881c5ba34ed2734525a0.zip |
Add cmake support for WITH_GCC_VISIBILITY.
-rw-r--r-- | ConfigureChecks.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index fdf3435..a6e0da4 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( ) + + if( BUILD_TRANSLATIONS AND NOT DEFINED MSGFMT_EXECUTABLE ) find_program( MSGFMT_EXECUTABLE msgfmt ) if( NOT MSGFMT_EXECUTABLE ) |