change log status g

This commit is contained in:
Andrei Yankovich 2021-04-01 13:41:02 +03:00
parent 0a7b2876c7
commit 47243ed442

View File

@ -52,16 +52,15 @@ endfunction()
function(includeQt ModulesList)
foreach(module ${ModulesList})
message ("try find the QT_${module} ")
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)
set(Qt${QT_VERSION_MAJOR}_${module}_FOUND ON)
message("The qt ${module} is found")
message(STATUS "The qt ${module} is found")
elseif()
message("The qt ${module} is alredy found")
message(STATUS "The qt ${module} is alredy found")
endif()
endforeach()