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
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to