summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2019-02-12 17:18:34 +0100
committerSlávek Banko <[email protected]>2019-02-12 17:19:09 +0100
commit0822d8fae62c2d57d2b9c4c986224e55ca738b36 (patch)
tree0994d869de855d1d52762dfd4ee9e1901b0433c9 /ConfigureChecks.cmake
parente156322496990d7c184a6f5526cafb36833690c7 (diff)
downloadknetload-0822d8fae62c2d57d2b9c4c986224e55ca738b36.tar.gz
knetload-0822d8fae62c2d57d2b9c4c986224e55ca738b36.zip
Use common CMake tests.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit c2d7ee1254684eafa5cb94ed132426b6d1eedc80)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake27
1 files changed, 5 insertions, 22 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 6bc33fa..289dd8c 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -16,28 +16,11 @@ tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
+tde_setup_largefiles( )
-##### check for gcc visibility
+
+##### 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")
-endif( WITH_GCC_VISIBILITY )
-
-
-##### gettext
-if( BUILD_TRANSLATIONS )
- include( FindGettext )
- if( GETTEXT_FOUND )
- set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
- CACHE FILEPATH "path to msgfmt executable" )
- endif( GETTEXT_FOUND )
-
- if( NOT MSGFMT_EXECUTABLE )
- tde_message_fatal( "msgfmt is required but was not found on your system." )
- endif( NOT MSGFMT_EXECUTABLE )
-endif( BUILD_TRANSLATIONS )
+ tde_setup_gcc_visibility( )
+endif( )