Add Qt 5 warning

This commit is contained in:
Jonas Kvinge 2022-01-02 14:48:45 +01:00
parent cb4332842f
commit 353e141036
2 changed files with 5 additions and 1 deletions

View File

@ -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.") message(WARNING "GStreamer is the only engine that is fully implemented. Using other engines is possible but not recommended.")
endif() 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(NOT CMAKE_CROSSCOMPILING)
if(QT_SQLITE_TEST) if(QT_SQLITE_TEST)
if(NOT SQLITE_FTS5_TEST) if(NOT SQLITE_FTS5_TEST)

View File

@ -24,7 +24,7 @@ macro(summary_show)
list(SORT summary_willbuild) list(SORT summary_willbuild)
list(SORT summary_willnotbuild) list(SORT summary_willnotbuild)
message("") 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_willbuild "The following components will be built:")
summary_show_part(summary_willnotbuild "The following components WILL NOT be built:") summary_show_part(summary_willnotbuild "The following components WILL NOT be built:")
message("") message("")