Fix message shown when Qt 5 is missing (#2884)

This commit is contained in:
Ryan Gonzalez 2017-06-18 13:05:02 -05:00 committed by Ani
parent 8c9b816c3d
commit 907c800e87
1 changed files with 7 additions and 6 deletions

View File

@ -20,11 +20,12 @@ if (NOT Qt5Widgets_FOUND)
if (Qt5Widgets_VERSION VERSION_LESS 5.8.0) if (Qt5Widgets_VERSION VERSION_LESS 5.8.0)
message("Minimum supported Qt5 version is 5.8! You have version ${Qt5Widgets_VERSION} installed, please upgrade!") message("Minimum supported Qt5 version is 5.8! You have version ${Qt5Widgets_VERSION} installed, please upgrade!")
if ("${CMAKE_SYSTEM}" MATCHES "Linux") if ("${CMAKE_SYSTEM}" MATCHES "Linux")
message(FATAL_ERROR "Most distros do not provide an up-to-date version of Qt.\n message(FATAL_ERROR "Most distros do not provide an up-to-date version of Qt.
If you're on Ubuntu or Linux Mint, there is a PPA you can use to install an up-to-date qt5 version.\n If you're on Ubuntu or Linux Mint, there are PPAs you can use to install an up-to-date qt5 version.
https://launchpad.net/~beineri/+archive/ubuntu/opt-qt59-Xenial\n https://launchpad.net/~beineri/+archive/ubuntu/opt-qt59-xenial
just make sure to run \n https://launchpad.net/~beineri/+archive/ubuntu/opt-qt59-trusty
source /opt/qt59/bin/qt59-env.sh\n just make sure to run
source /opt/qt59/bin/qt59-env.sh
before re-running cmake") before re-running cmake")
elseif(WIN32) elseif(WIN32)
message(FATAL_ERROR "You can download the latest version of Qt5 here: https://www.qt.io/download-open-source/") message(FATAL_ERROR "You can download the latest version of Qt5 here: https://www.qt.io/download-open-source/")