Custom message when Qt is not found
Thus both Qt6 and Qt5 are mentioned
This commit is contained in:
parent
5b4917c75a
commit
ee430ed96a
1 changed files with 4 additions and 1 deletions
5
external/qt/package.cmake
vendored
5
external/qt/package.cmake
vendored
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue