cmake CMP0028 & missing targets - what does one do about it?

Alex Merry alex.merry at kde.org
Tue Mar 31 19:29:25 UTC 2015


On Thursday 19 March 2015 14:16:35 Harald Sitter wrote:
> Problem tldr: target A links library B, A doesn't get the includes of
> link libraries of B by default. e.g. A links B, B links karchive, A
> doesn't have access to the karchive headers. also if karchive wasn't
> found in a super-scope of A and B, A will not know about karchive.

Sorry for the delayed response. As I understand it, targets have global scope, 
so this shouldn't happen.

> [3] kde:scratch/sitter/CMP0028

Indeed, this configures just fine for me (CMake 3.2.1), although it doesn't 
build because karchiveentry.h doesn't include all the headers it needs.

What version of CMake are you using?

Alex


More information about the Kde-frameworks-devel mailing list