Fix error message when Qt/KF module is not found

This commit is contained in:
Martchus 2023-11-18 22:04:25 +01:00
parent 88310af665
commit f52c7b8214
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ macro (use_qt_module)
find_package("${ARGS_PREFIX}${ARGS_MODULE}" "${META_QT_VERSION}" REQUIRED)
foreach (TARGET ${ARGS_TARGETS})
if (NOT TARGET "${TARGET}")
message(FATAL_ERROR "The ${ARGS_PREFIX}${ARGS_MODULE} does not provide the target ${TARGET}.")
message(FATAL_ERROR "The CMake module ${ARGS_PREFIX}${ARGS_MODULE} does not provide the target ${TARGET}.")
endif ()
if ("${TARGET}" IN_LIST "${ARGS_LIBRARIES_VARIABLE}")
continue()