FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.
C++ ai-agentsalgorithmic-tradingbloomberg-terminalcppfinancefinancial-marketsfintechgood-first-issueinvestmentinvestment-researchmachine-learningopensourcepythonqtquantitative-financestock-markettrading
Fix Windows source build by using Qt bundled zlib
anan-1027f5021b1bc408
diff --git a/fincept-qt/CMakeLists.txt b/fincept-qt/CMakeLists.txtindex 3888e4dda..f330740c5 100644--- a/fincept-qt/CMakeLists.txt+++ b/fincept-qt/CMakeLists.txt@@ -3087,9 +3087,13 @@ message(STATUS "OpenSSL found: ${OPENSSL_VERSION} — include: ${OPENSSL_INCLUDE# zlib: gzip (Upstox master) + zip (Shoonya symbol masters) decompression.# See trading/instruments/InstrumentDecompress.cpp. System zlib on macOS/Linux,# Qt-bundled on Windows.-find_package(ZLIB REQUIRED)-message(STATUS "ZLIB found: ${ZLIB_VERSION_STRING}")-+if(WIN32)+ find_package(Qt6ZlibPrivate REQUIRED)+ message(STATUS "Using Qt bundled Zlib")+else()+ find_package(ZLIB REQUIRED)+ message(STATUS "ZLIB found: ${ZLIB_VERSION_STRING}")+endif()# ── macOS: make Qt's openssl TLS plugin discoverable ─────────────────────────# Qt's libqopensslbackend.dylib only searches /usr/local/lib, /opt/local/lib,# /sw/lib, /usr/lib and Qt's own lib dir for libssl/libcrypto. Homebrew on@@ -3143,10 +3147,13 @@ target_link_libraries(FinceptTerminal PRIVATEqtadvanceddocking-qt6OpenSSL::SSLOpenSSL::Crypto- ZLIB::ZLIBfincept_ed25519)-+if(WIN32)+ target_link_libraries(FinceptTerminal PRIVATE Qt6::ZlibPrivate)+else()+ target_link_libraries(FinceptTerminal PRIVATE ZLIB::ZLIB)+endif()# SecureStorage no longer needs platform-specific credential frameworks —# it's pure SQLite + AES-256-GCM (OpenSSL) on every platform. See# storage/secure/SecureStorage.cpp.