Attached is a patch file of my first attempt. I can iterate some more
on this (better testing, add docs, clarify existing docs, address
anybody's comments, submit to stage) next week. Attached now in case
anybody wants to try it out over the weekend.


Cheers,
David C.


On Fri, Jul 17, 2015 at 3:03 PM, David Cole <dlrd...@aol.com> wrote:
> I think the see also is relevant because it points to another way to
> get to a whole different set of "properties". Perhaps what they're
> looking for when they stumble upon get_cmake_property is actually
> target properties, which are only accessible via get_property.
>
> While it's relevant, and I think it should remain, I do think it could
> use some clarification.
>
> I'll take a stab at this, and clarify the docs, too, unless somebody
> else chimes in and tells me "wait! I'm doing it already...."
>
> :-)
>
>
> Cheers,
> David C.
>
>
> On Fri, Jul 17, 2015 at 2:55 PM, Ben Boeckel <ben.boec...@kitware.com> wrote:
>> On Fri, Jul 17, 2015 at 14:16:34 -0400, David Cole wrote:
>>> get_cmake_property is more like "strictly well-pre-defined, read only
>>> (ish), built-into CMake" properties. Note there is no
>>> set_cmake_property... What docs are you looking at that you think have
>>> a bug...?
>>
>> Help/command/get_cmake_property:
>>
>>     get_cmake_property
>>     ------------------
>>
>>     Get a property of the CMake instance.
>>
>>     ::
>>
>>       get_cmake_property(VAR property)
>>
>>       Get a property from the CMake instance.  The value of the property is
>>       stored in the variable VAR.  If the property is not found, VAR will be
>>       set to "NOTFOUND".  Some supported properties include: VARIABLES,
>>       CACHE_VARIABLES, COMMANDS, MACROS, and COMPONENTS.
>>
>>       See also the more general get_property() command.
>>
>> `get_property` has no way (that I see) to ask for the same properties.
>> The whole command docs could use a revamp too (while TARGETS is being
>> implemented to avoid conflicts?).
>>
>> --Ben

Attachment: 0001-CMake-Add-TARGETS-to-get_cmake_property.patch
Description: Binary data

-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

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

Reply via email to