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