[cmake-developers] target_include_directories() accepts only absolute paths ?

Brad King brad.king at kitware.com
Tue Jan 29 13:36:24 EST 2013


On 01/29/2013 01:28 PM, Alexander Neundorf wrote:
> On Tuesday 29 January 2013, Brad King wrote:
>> Yes, especially if it works for your real-world case.  Whenever one
>> really wants to use a target one can use the plumbing directly:
>>
>>  $<TARGET_PROPERTY:mydep,INTERFACE_INCLUDE_DIRECTORIES>
> 
> Ok. Can support for this then also be added to include_directories(), or would 
> this break something ?

My understanding is that this should already be the case.  The
generator expression argument will just be added to the same
places a plain directory name would and then be evaluated by
the generator later.

-Brad



More information about the cmake-developers mailing list