From 83f91de1894c5fcf4c7544d9d10107f621298980 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Sun, 1 Aug 2021 10:37:17 +0200 Subject: [PATCH] BUILD: Disable deprecated Qt modules (see Qt doc about porting to 6.0) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a3e88ea5..73f21ccb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,6 +107,9 @@ target_compile_options(Vivy PRIVATE target_link_libraries(Vivy PRIVATE -fopenmp) +# Prepare for Qt6 +target_compile_definitions(Vivy PRIVATE QT_DISABLE_DEPRECATED_BEFORE=0x050F00) + # Some compiler specific warnings and options if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") target_compile_options(Vivy PRIVATE -- GitLab