From cab7bf571064b6edc3d9255983c9d86ea7bb9e08 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 26 Mar 2024 09:37:35 +0100 Subject: [PATCH] ensure we ignore deprecated warnings from openssl in unity builds Signed-off-by: Matthieu Gallien --- src/libsync/CMakeLists.txt | 2 ++ src/libsync/clientsideencryption.cpp | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsync/CMakeLists.txt b/src/libsync/CMakeLists.txt index 461f6dea213e8..57b4ddef8d826 100644 --- a/src/libsync/CMakeLists.txt +++ b/src/libsync/CMakeLists.txt @@ -219,6 +219,8 @@ target_compile_features(nextcloudsync cxx_std_17 ) +target_compile_definitions(nextcloudsync PRIVATE OPENSSL_SUPPRESS_DEPRECATED) + find_package(Qt5 REQUIRED COMPONENTS Gui Widgets Svg) target_link_libraries(nextcloudsync PUBLIC Qt5::Gui Qt5::Widgets Qt5::Svg) diff --git a/src/libsync/clientsideencryption.cpp b/src/libsync/clientsideencryption.cpp index c9a655278d0b2..ba34300420a16 100644 --- a/src/libsync/clientsideencryption.cpp +++ b/src/libsync/clientsideencryption.cpp @@ -1,5 +1,3 @@ -#define OPENSSL_SUPPRESS_DEPRECATED - #include "clientsideencryption.h" #include