[cmake-developers] [CMake 0011703]: Implementation of 'get_test_property' command does not correspond to documentation.

Mantis Bug Tracker mantis at public.kitware.com
Sat Jan 15 11:40:43 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11703 
====================================================================== 
Reported By:                prokher
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11703
Category:                   CMake
Reproducibility:            always
Severity:                   trivial
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-01-15 11:40 EST
Last Modified:              2011-01-15 11:40 EST
====================================================================== 
Summary:                    Implementation of 'get_test_property' command does
not correspond to documentation.
Description: 
get_test_property, doesn't work as it described in the documentation. After
short investigation I've found the following.

First of all, take a look at files
./Source/cmGetTestPropertyCommand.cxx
./Source/cmGetTestPropertyCommand.h

In the method cmGetTestPropertyCommand::GetFullDocumentation it is said
"get_test_property(test VAR property)", but if you glance at
cmGetTestPropertyCommand::InitialPass you'll see that actually arguments parsed
as "get_test_property(test property VAR)". So either documentation or parsing
code should be fixed.

Second. In "GetFulllDocumentation" said "If the property is not found, CMake
will report an error.", that is not true. If property is not found it only sets
VAR to 'NOTFOUND' error is not reported.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-15 11:40 prokher        New Issue                                    
======================================================================




More information about the cmake-developers mailing list