diff --git a/cmake/QtDocsHelpers.cmake b/cmake/QtDocsHelpers.cmake index a30ed66a320..6b7a307b250 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$"