diff options
| author | Alexander Golubev <fatzer2@gmail.com> | 2025-08-11 07:42:25 +0300 |
|---|---|---|
| committer | Alexander Golubev <fatzer2@gmail.com> | 2025-08-22 13:35:34 +0300 |
| commit | a2d0c4908fed9708e8f0fedf6fee24e324a17b52 (patch) | |
| tree | 7451426426891a631c46d747d9616d86ffe75d7b /ConfigureChecks.cmake | |
| parent | cc4a08b772c0b1b1468b8b4a75eb8b6ecb2c83e0 (diff) | |
| download | tdeaddons-a2d0c490.tar.gz tdeaddons-a2d0c490.zip | |
Add an option to build without SSLr14.1.5
Required in case tdelibs were build without SSL support
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 7d616f7548e5ae1326cbb9b6d3ee378ef45beb13)
Diffstat (limited to 'ConfigureChecks.cmake')
| -rw-r--r-- | ConfigureChecks.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 3f7d582..025bcf8 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -13,6 +13,7 @@ tde_setup_architecture_flags( ) +include(CheckCXXSymbolExists) include(TestBigEndian) test_big_endian(WORDS_BIGENDIAN) @@ -85,3 +86,16 @@ if( BUILD_NOATUN_PLUGINS ) endif( ) endif( WITH_BERKELEY_DB ) endif( BUILD_NOATUN_PLUGINS ) + + +if( BUILD_TDEFILE_PLUGINS AND WITH_SSL ) + # FIXME: There should be a better way to check for SSL support in tdelibs, but at the time of + # writing tdelibs doesn't seam to provide one. <2025-08-11 Fat-Zer> + tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${TDE_INCLUDE_DIR} ) + check_cxx_symbol_exists( "KSSL_HAVE_SSL" "ksslconfig.h" KSSL_HAVE_SSL ) + tde_restore( CMAKE_REQUIRED_INCLUDES ) + + if( NOT KSSL_HAVE_SSL ) + tde_message_fatal( "SSL is requested, but tdelibs on your system was build without SSL support" ) + endif( ) +endif( ) |
