[cmake-developers] Issuing errors for faulty INTERFACE_INCLUDE_DIRECTORIES

Brad King brad.king at kitware.com
Wed Mar 27 08:14:37 EDT 2013


On 03/26/2013 04:07 PM, Alexander Neundorf wrote:
> there is a difference here in that the include directory properties are a new 
> feature, so this wouldn't break existing code.
> It would force developers who make use of the new feature to split exported 
> targets into individual components and support components properly in their 
> Config.cmake files.

I don't want to force anyone to do that.  It is perfectly reasonable
to have a monolithic targets file.

> I'm ok with it if the error occurs at cmake time, I'd be even more ok if a 
> successful find_package() would continue to tell me that everything I need has 
> been found.
> This is the case with find-modules, I see this as a good thing.

find_package doesn't know everything you need because only after it
returns does the code start referencing some subset of the targets.

-Brad



More information about the cmake-developers mailing list