From: Felix Weilbach Date: Fri, 10 Sep 2021 13:59:47 +0000 (+0200) Subject: Disable Qt deprecation warnings X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~18^2~223^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0074d6c40ab38f5c4cb1318d711ee1b15dbb1bce;p=nextcloud-desktop.git Disable Qt deprecation warnings They don't help us during regular development and some of them are not fixable (e.g. QNetworkMangerConfiguration) in the open source variant of Qt5. Signed-off-by: Felix Weilbach --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 156c4e747..c73a620d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,9 +77,9 @@ include(GetGitRevisionDescription) get_git_head_revision(GIT_REFSPEC GIT_SHA1) add_definitions( + -DQT_DISABLE_DEPRECATED_BEFORE=0x000000 -DQT_USE_QSTRINGBUILDER -DQT_MESSAGELOGCONTEXT #enable function name and line number in debug output - -DQT_DEPRECATED_WARNINGS ) # if we cannot get it from git, directly try .tag (packages) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 74c460d06..ef1d69383 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -470,10 +470,6 @@ if(WITH_CRASHREPORTER) endif() endif() -# application.cpp still uses QDesktopServices::storageLocation -target_compile_definitions(nextcloudCore PRIVATE "QT_DISABLE_DEPRECATED_BEFORE=0") - - install(TARGETS nextcloud RUNTIME DESTINATION bin LIBRARY DESTINATION lib