1
0
Fork 0

Custom message when Qt is not found

Thus both Qt6 and Qt5 are mentioned
This commit is contained in:
Ilya Fedin 2023-06-25 14:43:44 +04:00 committed by John Preston
parent 5b4917c75a
commit ee430ed96a

View file

@ -29,7 +29,10 @@ if (NOT DEFINED QT_VERSION_MAJOR)
find_package(QT NAMES Qt6 COMPONENTS Core)
endif()
if (NOT QT_FOUND)
find_package(QT NAMES Qt5 COMPONENTS Core REQUIRED)
find_package(QT NAMES Qt5 COMPONENTS Core)
endif()
if (NOT QT_FOUND)
message(FATAL_ERROR "Neither Qt6 nor Qt5 is found")
endif()
endif()