summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-01-30 15:45:16 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-02-04 11:40:37 +0100
commitcdbb1c0a4c6539d4f2d0d58329034411f8e64534 (patch)
tree7ad1a9e896eac328b3e24b25be2d8f99b0e45330
parent77563f4f4cb7daee00a988fc673b672f3f935680 (diff)
downloadlibtdeldap-cdbb1c0a4c6539d4f2d0d58329034411f8e64534.tar.gz
libtdeldap-cdbb1c0a4c6539d4f2d0d58329034411f8e64534.zip
Use common CMake tests.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--ConfigureChecks.cmake9
1 files changed, 3 insertions, 6 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 3aa03f9..43e28e3 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -16,16 +16,13 @@ tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
+tde_setup_largefiles( )
+
##### check for gcc visibility support
if( WITH_GCC_VISIBILITY )
- if( NOT UNIX )
- tde_message_fatal( "gcc 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")
+ tde_setup_gcc_visibility( )
endif( WITH_GCC_VISIBILITY )