CMake: Fix QTP0001 warning in tests


Pick-to: 6.11 6.12
Change-Id: I10dfa81585b73b02c80c524a185312994bd52525
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commitb5a87165f0d7af84d2f19a59a217fd769006761d
parent9f0d8a4cee702adddb8e889429e00c7ead394792
authorKai Köhne <kai.koehne@qt.io>
committerKai Köhne <kai.koehne@qt.io>
commit timeTue, 28 Jul 2026 07:32:14 +0000