Review Request 114076: Set KDE4_INCLUDES in KDE4SupportConfig

David Faure faure at kde.org
Sun Nov 24 23:22:58 UTC 2013


On Monday 25 November 2013 00:00:38 Stephen Kelly wrote:
> David Faure wrote:
> > On Sunday 24 November 2013 23:11:25 Stephen Kelly wrote:
> >> David Faure wrote:
> >> > It doesn't link to kde4support, and KConfigCore doesn't install
> >> > forwarding headers yet. So this is a temporary measure, the real fix
> >> > being to generate and install forwarding headers; but this fix allows
> >> > to move the two things forward independently.
> >> 
> >> Given the issues that I pointed out in the patch, a better solution might
> >> be this:
> >> 
> >> diff --git a/ktimezoned/CMakeLists.txt b/ktimezoned/CMakeLists.txt
> >> index 5784802..0ac21e5 100644
> >> --- a/ktimezoned/CMakeLists.txt
> >> +++ b/ktimezoned/CMakeLists.txt
> >> @@ -7,6 +7,10 @@ endif (WIN32)
> >> 
> >>  kservice_desktop_to_json(ktimezoned.desktop)
> >>  
> >>  add_library(kded_ktimezoned MODULE ${kded_ktimezoned_SRCS})
> >> 
> >> +target_include_directories(kded_ktimezoned
> >> +  PRIVATE
> >> +    $<TARGET_PROPERTY:KF5::KDE4Support,INTERFACE_INCLUDE_DIRECTORIES>
> >> +)
> > 
> > This would have to be done in each and every subdirectory - urgh.
> 
> According to my test, it is only needed in ktimezoned?

Well, maybe right now, but there's a lot of subdirs currently commented out 
(to be ported), and I also don't want to make it harder for people to port 
code away from kde4support (which would then hit this issue).

> > How about add this in include_directories at the toplevel of
> > kde-runtime/CMakeLists.txt for now?
> 
> Yes, that also would work, I think (though I didn't try it):
> 
>  include_directories($<TARGET_PROPERTY:KF5::KDE4Support,INTERFACE_INCLUDE_DI
> RECTORIES>)

Works nicely, committed, thanks.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list