diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2019-09-18 16:18:32 +0200 |
---|---|---|
committer | Leander Beernaert <leander.beernaert@qt.io> | 2019-09-18 14:28:29 +0000 |
commit | 1496a88429e0745fa7fdfacd575f85648472c35c (patch) | |
tree | af9afd72251b886111436c9965597608647632c7 /cmake/QtBuild.cmake | |
parent | c58df80cf7926b07da9fe6515230bd4295c1fc6d (diff) |
Fix QtDeclcarative static builds
Incorrect variable name was being used to set the target in the parent
scope.
Change-Id: I73ea644ebf94c9b9a62b34b1ad493e488729ff2f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtBuild.cmake')
-rw-r--r-- | cmake/QtBuild.cmake | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index 425bdd8270..11a4b66e3f 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -2009,12 +2009,10 @@ function(add_qt_resource target resourceName) ) if (out_targets) - foreach(out_target IN LISTS out_targets) - qt_install(TARGETS "${out_target}" - EXPORT "${INSTALL_CMAKE_NAMESPACE}${target}Targets" - DESTINATION ${INSTALL_LIBDIR} - ) - endforeach() + qt_install(TARGETS ${out_targets} + EXPORT "${INSTALL_CMAKE_NAMESPACE}${target}Targets" + DESTINATION ${INSTALL_LIBDIR} + ) endif() endfunction() |