diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-10-19 02:35:22 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-10-19 02:55:24 +0200 |
commit | 3e2052d2d451a77852c362f6b8812f74f4648739 (patch) | |
tree | bda6cd517037cb3dc2329f482d5e34af5762f47a /ConfigureChecks.cmake | |
parent | 5de3d21a4a5c8fd83f4d6867b538653ea5c7ac82 (diff) | |
download | kbiff-3e2052d2d451a77852c362f6b8812f74f4648739.tar.gz kbiff-3e2052d2d451a77852c362f6b8812f74f4648739.zip |
cmake: Add options WITH_SSL and WITH_MLED
Fix test for SSL => is not needed, because is used KSSL from tdelibs
Fix test for ASUS Mail LED support in ACPI
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 6f2c0d2..dcab462 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -37,10 +37,22 @@ check_include_file( "paths.h" HAVE_PATHS_H ) #### set USE_SSL -find_package(OpenSSL) -if( OPENSSL_FOUND ) - set( USE_SSL 1 ) -endif( OPENSSL_FOUND ) +if( WITH_SSL ) + # For SSL support is used KSSL in tdelibs. + # Therefore, there is no need for a direct dependence on the SSL library. + set( USE_SSL 1 ) +endif( WITH_SSL ) + + +#### check for ASUS Mail LED + +if( WITH_MLED ) + if( EXISTS "/proc/acpi/asus/mled" ) + set( HAVE_MLED 1 ) + else( ) + tde_mesage_fatal( "ASUS Mail LED support was requested but not found in ACPI" ) + endif( ) +endif( WITH_MLED ) ##### gettext |