Compare commits

...
2 Commits
Author SHA1 Message Date
javier 516a658b91 build: improve OpenSSL find on Windows + disable mailio by default
- USE_MAILIO_IMAP=OFF by default (avoids broken thirdparty/boost)
- OpenSSL find with Windows-specific warning
- Native ImapSynchronizer works without mailio
- PrintSupport added for printing
2026-08-26 13:57:43 +02:00
javier eecfb5f90c build: disable mailio/Boost by default (USE_MAILIO_IMAP=OFF)
Avoids broken thirdparty/boost and missing OpenSSL on Windows.
Native ImapSynchronizer works without mailio.
Enable with -DUSE_MAILIO_IMAP=ON when Boost/OpenSSL are properly installed.
2026-08-26 13:56:15 +02:00
+15 -2
View File
@@ -8,7 +8,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FetchContent)
# Option to use mailio-based IMAP (OFF by default to avoid Boost dependency issues)
option(USE_MAILIO_IMAP "Use mailio-based IMAP synchronizer (requires Boost)" ON)
option(USE_MAILIO_IMAP "Use mailio-based IMAP synchronizer (requires Boost)" OFF)
if (USE_MAILIO_IMAP)
# Use pre-built mailio and Boost from thirdparty/
@@ -21,7 +21,20 @@ if (USE_MAILIO_IMAP)
find_package(mailio REQUIRED CONFIG)
endif()
find_package(Qt6 COMPONENTS Core Gui Widgets Network Sql Test Concurrent REQUIRED)
# Find OpenSSL for S/MIME support (optional on some platforms)
find_package(OpenSSL QUIET)
if (OPENSSL_FOUND)
message(STATUS "OpenSSL found: ${OPENSSL_VERSION}")
add_compile_definitions(OPENSSL_FOUND)
else()
if (WIN32)
message(WARNING "OpenSSL not found - S/MIME support disabled. Install OpenSSL and set OPENSSL_ROOT_DIR to enable.")
else()
message(WARNING "OpenSSL not found - S/MIME support disabled")
endif()
endif()
find_package(Qt6 COMPONENTS Core Gui Widgets Network Sql Test Concurrent PrintSupport REQUIRED)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)