diff --git a/cmake/QtPublicWalkLibsHelpers.cmake b/cmake/QtPublicWalkLibsHelpers.cmake index a7c40076921..7d3777d612e 100644 --- a/cmake/QtPublicWalkLibsHelpers.cmake +++ b/cmake/QtPublicWalkLibsHelpers.cmake @@ -153,9 +153,16 @@ function(__qt_internal_walk_libs lib "${lib}") endwhile() - # Skip static plugins. + # Skip processing static plugins. + # There are some abuses of this genex marker, because the more generic one below did + # not exist yet. set(_is_plugin_marker_genex "\\$") - if(lib MATCHES "${_is_plugin_marker_genex}") + + # Skip any genex expressions that contain the marker. Useful in cases like processing + # link expressions for prl file generation, where some link expressions should be + # skipped either because they don't make sense or they are handled differently. + set(_is_skip_marker_genex "\\$") + if(lib MATCHES "${_is_plugin_marker_genex}" OR lib MATCHES "${_is_skip_marker_genex}") continue() endif()