From 6fdeaea24f9035ad53ba2548a9467b3264cf01ad Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Wed, 1 Apr 2020 18:36:12 +0200 Subject: CMake: Don't try to add 3rd party includes to ModuleDepends files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When creating the include/QtShaderTools/QtShaderToolsDepends file in QtPostProcess.cmake -> qt_internal_write_depends_file(), we decide which include files to append based on link dependencies starting with Qt::, which happens to match 3rd party targets like Qt::BundledSpirv_Cross which doesn't expose headers in the prefix/include dir. Mark all bundled targets with the QT_MODULE_SKIP_DEPENDS_INCLUDE property to exclude them from being added to Depends files. This should fix static builds of qtquick3d which includes which tries to include a non-existent . Change-Id: I9dcff1e2ab721a7c21fcff3fda0faf8d023d60ba Reviewed-by: MÃ¥rten Nordheim --- cmake/QtBuild.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake') diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index f2d81575c4..51ad1f899d 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -3104,6 +3104,7 @@ function(qt_add_3rdparty_library target) VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} QT_MODULE_IS_3RDPARTY_LIBRARY TRUE + QT_MODULE_SKIP_DEPENDS_INCLUDE TRUE ) qt_handle_multi_config_output_dirs("${target}") -- cgit v1.2.3