From 2db41fefa006c9aabd577eee98b8a9594d264470 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Mon, 2 Nov 2020 11:27:47 +0100 Subject: CMake: Allow using a custom target for qt_internal_add_docs Some repos (like qtimageformats) might not have Qt modules, but they still need a target to pass to qt_internal_add_docs(). Allow passing custom targets to qt_internal_add_docs() without trying to generate bogus include paths. Change-Id: I12191e5b16c082e62e40c96d0eb4d6c0256e7ea4 Reviewed-by: Cristian Adam --- cmake/QtDocsHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtDocsHelpers.cmake b/cmake/QtDocsHelpers.cmake index a30ed66a32..6b7a307b25 100644 --- a/cmake/QtDocsHelpers.cmake +++ b/cmake/QtDocsHelpers.cmake @@ -55,7 +55,7 @@ function(qt_internal_add_docs) set(target_include_dirs_file "${doc_output_dir}/$/includes.txt") set(include_paths_property "$") - if (NOT target_type STREQUAL "INTERFACE_LIBRARY") + if (NOT target_type STREQUAL "INTERFACE_LIBRARY" AND NOT target_type STREQUAL "UTILITY") file(GENERATE OUTPUT ${target_include_dirs_file} CONTENT "-I$" -- cgit v1.2.3