From 3d4e34169fe8cc40a47a508e49c4375a9b81f60d Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Thu, 25 Aug 2022 16:34:41 -0400 Subject: [PATCH] Turn off deprecated declarations (e.g., Qt 5.15) Signed-off-by: Geoff Hutchison --- avogadro/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/avogadro/CMakeLists.txt b/avogadro/CMakeLists.txt index 843ef4b6c3..80d5abe578 100644 --- a/avogadro/CMakeLists.txt +++ b/avogadro/CMakeLists.txt @@ -55,6 +55,10 @@ if(USE_OPENGL) endif() if(USE_QT) + if (NOT MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations") + endif() + add_subdirectory(qtgui) include_directories(${CMAKE_CURRENT_BINARY_DIR}/qtgui) if(USE_OPENGL)