Use KDE_INSTALL_TARGETS_DEFAULT_ARGS when installing targets
ClosedPublic

Authored by elvisangelaccio on Mar 11 2017, 3:16 PM.

Details

Summary

Otherwise the targets' INTERFACE_INCLUDE_DIRECTORIES will contain
$PREFIX/include/KF5 instead of $PREFIX/include. This causes build
failures on the CI because libkgapi no longer installs the include files
under the KF5 prefix. Thus cmake fails with errors such as:

"Imported target KPim::GAPICore includes non-existent path"

Diff Detail

Repository
R477 KGAPI Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

This is the extended error message for kio-gdrive master on Jenkins:

CMake Error in src/CMakeLists.txt:
  Imported target "KPim::GAPICore" includes non-existent path

    "/srv/jenkins/install/ubuntu/x86_64/g++/kf5-qt5/kde/pim/libkgapi/inst/usr/include/KF5"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.
dvratil accepted this revision.Mar 13 2017, 10:34 AM
This revision is now accepted and ready to land.Mar 13 2017, 10:34 AM
This revision was automatically updated to reflect the committed changes.