[cmake-developers] Issuing errors for faulty INTERFACE_INCLUDE_DIRECTORIES
Alexander Neundorf
neundorf at kde.org
Tue Mar 26 16:07:45 EDT 2013
On Tuesday 26 March 2013, Brad King wrote:
> On 03/26/2013 03:24 PM, Alexander Neundorf wrote:
> > Probably I'm missing something obvious... can't the include-directories
> > be checked by generating code into the exports-file ?
>
> No. We went over that for a similar case in another thread recently:
>
> http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/6106/focu
> s=6138
>
> The imported targets should not produce errors if they are not used.
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'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.
Alex
More information about the cmake-developers
mailing list