Fix CMakeLists.txt issues
ClosedPublic

Authored by poboiko on Sep 14 2018, 8:44 AM.

Details

Summary

Remove redundant install(FILES) and fix PREFIX for KPeople/Widgets (so pretty CamelCase headers would work)

Test Plan

It compiles, it works.

Diff Detail

Repository
R307 KPeople
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
poboiko created this revision.Sep 14 2018, 8:44 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptSep 14 2018, 8:44 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
poboiko requested review of this revision.Sep 14 2018, 8:44 AM
dvratil requested changes to this revision.Sep 14 2018, 10:45 AM
dvratil added inline comments.
src/declarative/personactionsmodel.cpp
20–21

This looks suspicious. When compiling, you should not need to refer to <kpeople/...>, the includes should actually be

#include "persondata.h"
#include "widgets/actions.h"

otherwise, there's a risk that a wrong header gets included from installed KPeople instead of from the source tree.

I suspect this module lived elsewhere and got just moved into KPeople without adjusting the includes.

This revision now requires changes to proceed.Sep 14 2018, 10:45 AM
poboiko updated this revision to Diff 41641.Sep 14 2018, 11:57 AM

Fixed global includes

poboiko marked an inline comment as done.Sep 14 2018, 11:57 AM
dvratil accepted this revision.Sep 14 2018, 12:26 PM

Thanks!

This revision is now accepted and ready to land.Sep 14 2018, 12:26 PM
This revision was automatically updated to reflect the committed changes.