diff options
author | OBATA Akio <[email protected]> | 2021-06-06 17:48:59 +0900 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2021-06-09 18:40:18 +0200 |
commit | d94ac462c97564525e40d2167221607b7ced0dc8 (patch) | |
tree | c6ad63de9483493fb37b5ab0b763dcb49e642107 | |
parent | 592f8bf1989ebf3b816be1bb50a0fbebc5289983 (diff) | |
download | tdepim-d94ac462c97564525e40d2167221607b7ced0dc8.tar.gz tdepim-d94ac462c97564525e40d2167221607b7ced0dc8.zip |
Fix to detect gnokii header file
It is used as the build condition in kaddressbook.
Signed-off-by: OBATA Akio <[email protected]>
(cherry picked from commit dea6d6ca6a8829238eea25559dd2c9a87fddca87)
-rw-r--r-- | ConfigureChecks.cmake | 4 | ||||
-rw-r--r-- | config.h.cmake | 1 |
2 files changed, 5 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( ) diff --git a/config.h.cmake b/config.h.cmake index 6a53137bf..302fc42d0 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -43,6 +43,7 @@ #cmakedefine STD_NAMESPACE_PREFIX @STD_NAMESPACE_PREFIX@ // kaddressbook +#cmakedefine HAVE_GNOKII_H 1 #cmakedefine TDEPIM_NEW_DISTRLISTS 1 // karm |