summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2012-12-11 01:32:57 +0100
committerSlávek Banko <slavek.banko@axis.cz>2012-12-11 01:32:57 +0100
commitba743d360eabb06e6ffbafd2c7bc833dd985aa0c (patch)
treeedc421f8cfac823d6c2d5826995237a08df69133 /ConfigureChecks.cmake
parent28ff5585a116ba843da78f1c535d86fd6072dff2 (diff)
downloadtdeutils-ba743d360eabb06e6ffbafd2c7bc833dd985aa0c.tar.gz
tdeutils-ba743d360eabb06e6ffbafd2c7bc833dd985aa0c.zip
Fix cmake build: WITH_POWERBOOK2 option for kmilo
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake27
1 files changed, 12 insertions, 15 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 14828bc..2766533 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -117,24 +117,21 @@ endif( )
##### kmilo #####################################
-if ( BUILD_KMILO )
+if( BUILD_KMILO )
# FIXME: If anybody will ever compile trinity for POWERPC and especialy for
-# POWERBOOK he should test those checks and modules
- if( WITH_POWERBOOK )
+# POWERBOOK he or she should test workability of those modules
+ if( WITH_POWERBOOK OR WITH_POWERBOOK2 )
+ check_library_exists( "pbb" "init_libpbb" "" HAVE_PBBIPC_LIBRARY )
check_include_file( "pbbipc.h" HAVE_PBBIPC_H )
- if( NOT HAVE_PBBIPC_H )
- tde_message_fatal( "pbbipc.h header is required, but was not found on your system" )
- endif( NOT HAVE_PBBIPC_H )
- endif( WITH_POWERBOOK )
-
- if( WITH_POWERBOOK2 )
check_include_file( "pbb.h" HAVE_PBB_H )
- if( NOT HAVE_PBB_H )
- tde_message_fatal( "pbb.h header is required, but was not found on your system" )
- endif( NOT HAVE_PBB_H )
- endif( WITH_POWERBOOK2 )
-
-endif (BUILD_KMILO)
+ if( HAVE_PBBIPC_LIBRARY AND ( ( WITH_POWERBOOK AND HAVE_PBBIPC_H ) OR
+ ( WITH_POWERBOOK2 AND HAVE_PBB_H ) ) )
+ set( PBB_LIBRARY pbb CACHE INTERNAL "" )
+ else()
+ tde_message_fatal( "suitable pbbuttonosd is required, but was not found on your system" )
+ endif()
+ endif( WITH_POWERBOOK OR WITH_POWERBOOK2 )
+endif( BUILD_KMILO )
##### ksim ######################################