[cmake-developers] Setting include directories via target_link_libraries() ?

Matthew Woehlke matthew.woehlke at kitware.com
Tue Dec 11 11:08:45 EST 2012


On 2012-12-11 08:35, Brad King wrote:
> Another idea is to simply not allow both commands to be used on a given
> target.  Since the new command does not yet exist this cannot break any
> existing projects.  One must either specify everything by the new command
> or everything by the old command.

How would this work when a target needs to link to some package that 
does not provide exported interfaces? (Thinking of most existing 
module-based find_package stuff, here...) Does it take library paths? 
Include paths? What about broken find modules that require linking to 
their libraries with link_directories() + tll(<library name without path>)?

-- 
Matthew



More information about the cmake-developers mailing list