Browse Source

Add cmake support for WITH_GCC_VISIBILITY.

Darrell Anderson 6 years ago
parent
commit
9629c73d02
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      ConfigureChecks.cmake

+ 14
- 0
ConfigureChecks.cmake View File

@@ -9,6 +9,20 @@
9 9
 #
10 10
 #################################################
11 11
 
12
+##### check for gcc visibility support #########
13
+# FIXME
14
+# This should check for [T]Qt3 visibility support
15
+
16
+if( WITH_GCC_VISIBILITY )
17
+  if( NOT UNIX )
18
+    tde_message_fatal(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" )
19
+  endif( NOT UNIX )
20
+  set( __KDE_HAVE_GCC_VISIBILITY 1 )
21
+  set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
22
+  set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
23
+endif( )
24
+
25
+
12 26
 tde_setup_architecture_flags( )
13 27
 
14 28
 # freetype2

Loading…
Cancel
Save