ensure we ignore deprecated warnings from openssl in unity builds
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 26 Mar 2024 08:37:35 +0000 (09:37 +0100)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Wed, 27 Mar 2024 09:34:22 +0000 (10:34 +0100)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/CMakeLists.txt
src/libsync/clientsideencryption.cpp

index 461f6dea213e8497b10ef8d9cea23b23ff80ab36..57b4ddef8d826adb965f6bde23cfc0ede4b2d1be 100644 (file)
@@ -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)
 
index c9a655278d0b2d6c1ec85300cce1962e182067b0..ba34300420a165f979afc9c7c6b5754895c4d1fd 100644 (file)
@@ -1,5 +1,3 @@
-#define OPENSSL_SUPPRESS_DEPRECATED
-
 #include "clientsideencryption.h"
 
 #include <openssl/rsa.h>