[cmake-developers] INTERFACE_INCLUDE_DIRECTORIES on STATIC libs

David Cole dlrdave at aol.com
Fri Feb 8 15:00:18 EST 2013


 What does TARGET_DEFINED actually mean?

That it exists as a target at generate time? Is it useful so you can reference a target *before* you know at CMake-configure time whether there is such a target yet, or is it something else?

 
I think "defined" or "exists" are both good names for that concept.

Otherwise, if it's something else, I'll need to understand it first before passing judgment on name ideas...


;-)

D



 

-----Original Message-----
From: Stephen Kelly <steveire at gmail.com>
To: cmake-developers <cmake-developers at cmake.org>
Sent: Fri, Feb 8, 2013 2:36 pm
Subject: Re: [cmake-developers] INTERFACE_INCLUDE_DIRECTORIES on STATIC libs


Brad King wrote:

> On 02/08/2013 01:46 PM, Stephen Kelly wrote:
>> I think it might make sense to handle them particularly in LINKED, but I
>> notice set_property and set_target_properties also work fine with them
>> (should that be changed too?)
> 
> The ExternalProject module makes heavy use of properties on custom
> targets.
> It is common.  It's just INTERFACE properties that do not make sense.

Ok, implemented for the LINKED expression.

> 
>>, so I don't know if TARGET_PROPERTY should be
>> changed too. If it is, then it makes sense to change TARGET_DEFINED to
>> consider utilities to not be targets, as that expression is most usefully
>> used with TARGET_PROPERTY.
> 
> Perhaps TARGET_DEFINED is not a good name then.  What are we really
> asking?  TARGET_LINKABLE?

That may not be a good name either. It reads generic enough to me to also 
mistake it as accepting libraries.

 $<TARGET_LINKABLE:foo> # Is libfoo.so available in the places 
                        # where cmake looks for it?

I don't really have a better idea at the moment though.

Thanks,

Steve.


--

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

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20130208/13b40cd2/attachment.html>


More information about the cmake-developers mailing list