From 95c27e325f47cff168a85c21b4b9e592168384f9 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 9 Aug 2019 12:47:55 +0200 Subject: Fix add_qt_resource behavior with regards to unspecified prefixes This change makes the PREFIX parameter a required parameter if the target does not specify a default. This way the behavior is clear when reading the code: add_qt_resource() without PREFIX means it must come frmo the target. Change-Id: I79024e70e7b4d32a5164b93aa08ec9ff409b2d39 Reviewed-by: Alexandru Croitor Reviewed-by: Leander Beernaert --- tests/auto/network/access/qnetworkreply/test/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/auto/network/access/qnetworkreply/test/CMakeLists.txt') diff --git a/tests/auto/network/access/qnetworkreply/test/CMakeLists.txt b/tests/auto/network/access/qnetworkreply/test/CMakeLists.txt index df589b67da..ae7a4d0fe0 100644 --- a/tests/auto/network/access/qnetworkreply/test/CMakeLists.txt +++ b/tests/auto/network/access/qnetworkreply/test/CMakeLists.txt @@ -35,7 +35,12 @@ add_qt_test(tst_qnetworkreply ) # Resources: +set_source_files_properties("../resource" + PROPERTIES alias "resource" +) add_qt_resource(tst_qnetworkreply "qnetworkreply" + PREFIX + "/" BASE ".." FILES -- cgit v1.2.3