summaryrefslogtreecommitdiffstats
path: root/src/corelib/Qt5CoreMacros.cmake
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2020-07-06 19:31:28 +0200
committerKai Koehne <kai.koehne@qt.io>2020-07-09 13:11:54 +0200
commit9d87528eb6a7eb48763d41c7bff6a532f98708cd (patch)
tree8ba180e8c617866862696b156edf48572e1dcab1 /src/corelib/Qt5CoreMacros.cmake
parent46a741d81c93c396c747415219395cc3e12ff0c4 (diff)
CMake: Fix dependency in qt_add_big_resources
Ensure that the second rcc pass is executed whenever the object file changes. Patch provided by Hongpeng Liu <lhpzwd@163.com> Fixes: QTBUG-85186 Change-Id: I6e52ec15048ab286efd85500ca535b2b8b01c270 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 03de9a41da039f79b9a8881e9c8c476b008d4d07)
Diffstat (limited to 'src/corelib/Qt5CoreMacros.cmake')
-rw-r--r--src/corelib/Qt5CoreMacros.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/Qt5CoreMacros.cmake b/src/corelib/Qt5CoreMacros.cmake
index 88350cb68b..c973799140 100644
--- a/src/corelib/Qt5CoreMacros.cmake
+++ b/src/corelib/Qt5CoreMacros.cmake
@@ -406,7 +406,7 @@ function(qt5_add_big_resources outfiles)
add_custom_command(OUTPUT ${outfile}
COMMAND ${Qt5Core_RCC_EXECUTABLE}
ARGS ${rcc_options} --name ${outfilename} --pass 2 --temp $<TARGET_OBJECTS:rcc_object_${outfilename}> --output ${outfile} ${infile}
- DEPENDS rcc_object_${outfilename}
+ DEPENDS rcc_object_${outfilename} $<TARGET_OBJECTS:rcc_object_${outfilename}>
VERBATIM)
list(APPEND ${outfiles} ${outfile})
endforeach()