mirror of
https://github.com/QuasarApp/CMake.git
synced 2025-04-26 17:54:43 +00:00
fix cmake module
This commit is contained in:
parent
aa2d85d88b
commit
0a7b2876c7
@ -53,14 +53,15 @@ function(includeQt ModulesList)
|
||||
|
||||
foreach(module ${ModulesList})
|
||||
message ("try find the QT_${module} ")
|
||||
if (NOT Qt${QT_VERSION_MAJOR}_FOUND)
|
||||
find_package(QT NAMES Qt6 Qt5 )
|
||||
find_package(Qt${QT_VERSION_MAJOR})
|
||||
if (NOT Qt${QT_VERSION_MAJOR}_${module}_FOUND)
|
||||
find_package(QT NAMES Qt6 Qt5 COMPONENTS ${module} REQUIRED)
|
||||
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS ${module} REQUIRED)
|
||||
|
||||
if (Qt${QT_VERSION_MAJOR}_FOUND)
|
||||
message("Qt${QT_VERSION_MAJOR} is found")
|
||||
set(Qt${QT_VERSION_MAJOR}_${module}_FOUND ON)
|
||||
message("The qt ${module} is found")
|
||||
|
||||
endif()
|
||||
elseif()
|
||||
message("The qt ${module} is alredy found")
|
||||
endif()
|
||||
|
||||
endforeach()
|
||||
|
Loading…
x
Reference in New Issue
Block a user