diff --git a/cmake/SearchForStuff.cmake b/cmake/SearchForStuff.cmake index 2e4dacefa9..a182056a5b 100644 --- a/cmake/SearchForStuff.cmake +++ b/cmake/SearchForStuff.cmake @@ -119,6 +119,12 @@ add_subdirectory(3rdparty/ccc EXCLUDE_FROM_ALL) # The docking system for the debugger. find_package(KDDockWidgets-qt6 REQUIRED) +# Add an extra include path to work around a broken include directive. +# TODO: Remove this the next time we update KDDockWidgets. +get_target_property(KDDOCKWIDGETS_INCLUDE_DIRECTORY KDAB::kddockwidgets INTERFACE_INCLUDE_DIRECTORIES) +target_include_directories(KDAB::kddockwidgets INTERFACE + ${KDDOCKWIDGETS_INCLUDE_DIRECTORY}/kddockwidgets +) # Architecture-specific. if(_M_X86)