Browse Source

Use common CMake tests.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Slávek Banko 1 month ago
parent
commit
f7fe0b261e
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
2 changed files with 5 additions and 8 deletions
  1. 1
    0
      CMakeLists.txt
  2. 4
    8
      ConfigureChecks.cmake

+ 1
- 0
CMakeLists.txt View File

@@ -27,6 +27,7 @@ include( CheckTypeSize )
27 27
 include( CheckCSourceCompiles )
28 28
 include( CheckCXXSourceCompiles )
29 29
 include( CheckLibraryExists )
30
+include( CheckSymbolExists )
30 31
 
31 32
 
32 33
 ##### include our cmake modules #################

+ 4
- 8
ConfigureChecks.cmake View File

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

Loading…
Cancel
Save