This commit is contained in:
2024-04-10 23:22:41 +03:00
parent 669bbff8ef
commit 14ee051dcb
7 changed files with 9 additions and 9 deletions

View File

@@ -22,14 +22,14 @@ macro(myx_find_qt)
message(FATAL_ERROR "Supported Qt versions are 5 and 6")
endif()
if(ARG_REQUIRED)
if(ARG_REQUIRED AND ARG_PRIVATE)
message("-- MyxCMake: searching required Qt private components: ${ARG_PRIVATE}")
endif()
foreach(iter ${ARG_PRIVATE})
find_package("Qt${ARG_VERSION}${iter}" COMPONENTS Private ${ARG_REQUIRED})
endforeach()
if(ARG_REQUIRED)
if(ARG_REQUIRED AND ARG_COMPONENTS)
message("-- MyxCMake: searching required Qt components: ${ARG_COMPONENTS}")
endif()
foreach(iter ${ARG_COMPONENTS})