Przeglądaj źródła

Add cmake support for WITH_GCC_VISIBILITY.

tags/r14.0.0
Darrell Anderson 6 lat temu
rodzic
commit
88437440b5
1 zmienionych plików z 14 dodań i 0 usunięć
  1. 14
    0
      ConfigureChecks.cmake

+ 14
- 0
ConfigureChecks.cmake Wyświetl plik

@@ -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
 if( BUILD_TRANSLATIONS AND NOT DEFINED MSGFMT_EXECUTABLE )
13 27
   find_program( MSGFMT_EXECUTABLE msgfmt )
14 28
   if( NOT MSGFMT_EXECUTABLE )

Ładowanie…
Anuluj
Zapisz