From 0074d6c40ab38f5c4cb1318d711ee1b15dbb1bce Mon Sep 17 00:00:00 2001 From: Felix Weilbach Date: Fri, 10 Sep 2021 15:59:47 +0200 Subject: [PATCH] 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 --- CMakeLists.txt | 2 +- src/gui/CMakeLists.txt | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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 -- 2.39.5