diff options
Diffstat (limited to 'cmake/QtPrlHelpers.cmake')
-rw-r--r-- | cmake/QtPrlHelpers.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/QtPrlHelpers.cmake b/cmake/QtPrlHelpers.cmake index 7977afd030..932565f318 100644 --- a/cmake/QtPrlHelpers.cmake +++ b/cmake/QtPrlHelpers.cmake @@ -29,6 +29,16 @@ function(qt_internal_walk_libs target out_var dict_name operation) return() endif() list(APPEND collected ${target}) + + if(target STREQUAL "${QT_CMAKE_EXPORT_NAMESPACE}::Startup") + # We can't (and don't need to) process Startup, because it contains $<TARGET_PROPERTY:prop> + # genexes which get replaced with $<TARGET_PROPERTY:Startup,prop> genexes in the code below + # and that causes 'INTERFACE_LIBRARY targets may only have whitelisted properties.' errors + # with CMake versions equal to or lower than 3.18. These errors are super unintuitive to + # debug because there's no mention that it's happening during a file(GENERATE) call. + return() + endif() + if(NOT TARGET ${dict_name}) add_library(${dict_name} INTERFACE IMPORTED GLOBAL) endif() |