Fix passing arguments when configuring Qt plugins
This commit is contained in:
parent
75b992bfd1
commit
89152bdbe9
|
@ -83,10 +83,10 @@ macro (use_qt_module)
|
|||
# find and use plugins
|
||||
foreach (PLUGIN ${ARGS_PLUGINS})
|
||||
if (NOT TARGET "${ARGS_PREFIX}::Q${PLUGIN}Plugin")
|
||||
find_package("${PREFIX}${MODULE}" "${META_QT5_VERSION}" REQUIRED)
|
||||
find_package("${ARGS_PREFIX}${ARGS_MODULE}" "${META_QT5_VERSION}" REQUIRED)
|
||||
endif ()
|
||||
if (NOT TARGET "${ARGS_PREFIX}::Q${PLUGIN}Plugin")
|
||||
message(FATAL_ERROR "The ${ARGS_PREFIX}${MODULE} does not provide the target ${ARGS_PREFIX}::Q${PLUGIN}Plugin.")
|
||||
message(FATAL_ERROR "The ${ARGS_PREFIX}${ARGS_MODULE} package does not provide the target ${ARGS_PREFIX}::Q${PLUGIN}Plugin.")
|
||||
endif ()
|
||||
if ("${ARGS_PREFIX}::Q${PLUGIN}Plugin" IN_LIST "${ARGS_LIBRARIES_VARIABLE}")
|
||||
continue()
|
||||
|
|
Loading…
Reference in New Issue