Link against Qml when using quick compiler

When using the quick compiler to compile qml files, add an explicit
dependency on Qml. This will result in linker errors otherwise.

Change-Id: Ib7af0e8ec1b48822fd0d3c3556f10d24f10e7489
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
Leander Beernaert 2019-08-23 11:23:07 +02:00
parent 60ceb1b0c5
commit 8b800dc384
1 changed files with 1 additions and 1 deletions

View File

@ -145,13 +145,13 @@ function(__qt_quick_compiler_process_resources target resource_name)
if (resource_files)
set(resource_name ${chained_resource_name})
endif()
target_link_libraries(${target} PRIVATE @QT_CMAKE_EXPORT_NAMESPACE@::Qml)
else()
set(resource_files ${arg_FILES})
endif()
set(${arg_OUTPUT_REMAINING_RESOURCES} ${resource_files} PARENT_SCOPE)
set(${arg_OUTPUT_RESOURCE_NAME} ${resource_name} PARENT_SCOPE)
endfunction()
#