On 07/29/2013 04:10 PM, Alexander Neundorf wrote:
> On Monday 29 July 2013, Stephen Kelly wrote:
>> Are you really certain it is always an error for a target to not set this?
> 
> I think so.
> If I want to use symbols from a library, I should include its headers, and 
> for 
> that the include dirs need to be known.
> 
> For header-only libraries even more.
> 
> Are there cases where this is not the case ?
> 
> Don't know about Fortran.

Not all targets provided in a package need to be listed by the package
config file in the <pkg>_LIBRARY_TARGETS variable.  The restriction
here is that those that are listed in the variable need to have
INTERFACE_INCLUDE_DIRS set, even if empty.

-Brad
--

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