summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2021-06-06 17:48:59 +0900
committerOBATA Akio <obache@wizdas.com>2021-06-09 18:59:21 +0900
commitdea6d6ca6a8829238eea25559dd2c9a87fddca87 (patch)
tree0bdf90668f278c6a3b5c5e7fb48f6e9fba3ba892 /ConfigureChecks.cmake
parenta49bd18d7e06ce7ec0747d4a2a930dbc4bf94dff (diff)
downloadtdepim-dea6d6ca6a8829238eea25559dd2c9a87fddca87.tar.gz
tdepim-dea6d6ca6a8829238eea25559dd2c9a87fddca87.zip
Fix to detect gnokii header file
It is used as the build condition in kaddressbook. Signed-off-by: OBATA Akio <obache@wizdas.com>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 659ed0f92..09fc71fff 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -59,6 +59,10 @@ if( WITH_GNOKII AND (BUILD_KADDRESSBOOK OR BUILD_KMOBILE) )
pkg_search_module( GNOKII gnokii )
if( NOT GNOKII_FOUND )
tde_message_fatal( "gnokii are requested, but was not found on your system" )
+ else( )
+ tde_save_and_set( CMAKE_REQUIRED_INCLUDES "${GNOKII_INCLUDE_DIRS}" )
+ check_include_file( "gnokii.h" HAVE_GNOKII_H )
+ tde_restore( CMAKE_REQUIRED_INCLUDES )
endif( )
endif( )