From 353e141036de078afa2f786e206606c5b5ccdd31 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 2 Jan 2022 14:48:45 +0100 Subject: [PATCH] Add Qt 5 warning --- CMakeLists.txt | 4 ++++ cmake/Summary.cmake | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d2e0c8b44..0bb6cfcec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -523,6 +523,10 @@ elseif(NOT HAVE_GSTREAMER) message(WARNING "GStreamer is the only engine that is fully implemented. Using other engines is possible but not recommended.") endif() +if(QT_VERSION_MAJOR EQUAL 5) + message(WARNING "It is detected that Strawberry is being built with Qt 5. There are no bugfix releases for the latest minor LTS version of Qt 5 available to open-source users, only commercial users. Therefore Strawberry should be built with Qt 6 when possible. Building with Qt 6 will also take advantage of improvements and new features not available in Qt 5. To build with Qt 6 specify -DBUILD_WITH_QT6=ON to automatically detect Qt 6, or for example -DCMAKE_PREFIX_PATH=/usr/local/lib64/cmake to manually specify the Qt 6 directory.") +endif() + if(NOT CMAKE_CROSSCOMPILING) if(QT_SQLITE_TEST) if(NOT SQLITE_FTS5_TEST) diff --git a/cmake/Summary.cmake b/cmake/Summary.cmake index 360c7de57..577524b6b 100644 --- a/cmake/Summary.cmake +++ b/cmake/Summary.cmake @@ -24,7 +24,7 @@ macro(summary_show) list(SORT summary_willbuild) list(SORT summary_willnotbuild) message("") - message("Building strawberry version: ${STRAWBERRY_VERSION_DISPLAY}") + message("Building strawberry version: ${STRAWBERRY_VERSION_DISPLAY}, Qt version ${Qt${QT_VERSION_MAJOR}Core_VERSION}") summary_show_part(summary_willbuild "The following components will be built:") summary_show_part(summary_willnotbuild "The following components WILL NOT be built:") message("")