diff options
author | Slávek Banko <[email protected]> | 2019-02-10 20:49:45 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-02-10 20:50:01 +0100 |
commit | 8a9ec5847da34390d9f9e19f7bf7e9621c5114eb (patch) | |
tree | c0891667e2089b6f7c94e7488d12ce7abf836faa | |
parent | 531d82dab522b2f36d3ee29fd89fbf33201c55a1 (diff) | |
download | kcpuload-8a9ec5847da34390d9f9e19f7bf7e9621c5114eb.tar.gz kcpuload-8a9ec5847da34390d9f9e19f7bf7e9621c5114eb.zip |
Use common CMake tests.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit e4ba6b8d5cd1c6c28a939c84b69849eda68fb255)
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | ConfigureChecks.cmake | 32 |
2 files changed, 8 insertions, 25 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 71976ee..c2fc422 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ set( VERSION R14.1.0 ) include( FindPkgConfig ) include( CheckIncludeFile ) include( CheckLibraryExists ) +include( CheckSymbolExists ) include( CheckCSourceCompiles ) include( CheckCXXSourceCompiles ) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 63944db..116924c 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -9,37 +9,19 @@ # required stuff -find_package( TQt ) -find_package( TDE ) - tde_setup_architecture_flags( ) include(TestBigEndian) test_big_endian(WORDS_BIGENDIAN) +tde_setup_largefiles( ) + +find_package( TQt ) +find_package( TDE ) + ##### 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( ) |