From dea6d6ca6a8829238eea25559dd2c9a87fddca87 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Sun, 6 Jun 2021 17:48:59 +0900 Subject: Fix to detect gnokii header file It is used as the build condition in kaddressbook. Signed-off-by: OBATA Akio --- ConfigureChecks.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 659ed0f9..09fc71ff 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( ) -- cgit v1.2.3