On 07/17/2015 06:05 PM, David Cole via cmake-developers wrote:
> 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.
[snip]
>> 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.

get_cmake_property is get_property with the GLOBAL scope, except that
it looks like the special VARIABLES, MACROS, and COMPONENTS properties
are hard-coded into get_cmake_property incorrectly.

This should all be moved over to cmState::GetGlobalProperty and the
new TARGETS property added there.  That method already has special
handling for a few other properties too.

Also the documentation of get_cmake_property should be updated to
mention "global" properties.

-Brad

-- 

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