diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-11-02 11:27:47 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-11-07 19:33:37 +0100 |
commit | 2db41fefa006c9aabd577eee98b8a9594d264470 (patch) | |
tree | 15d39c4fd4fb3fe50e2bb8c75cec8228b2bf373c | |
parent | 36c864729a2b05d297850291f9fe281411945f5e (diff) |
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 <cristian.adam@qt.io>
-rw-r--r-- | cmake/QtDocsHelpers.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
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}/$<CONFIG>/includes.txt") set(include_paths_property "$<TARGET_PROPERTY:${target},INCLUDE_DIRECTORIES>") - 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$<JOIN:${include_paths_property},\n-I>" |