MantisBT - CMake
View Issue Details
0011703CMakeCMakepublic2011-01-15 11:402011-01-31 16:00
prokher 
Brad King 
normaltrivialalways
closedfixed 
allallall
 
CMake 2.8.4CMake 2.8.4 
0011703: Implementation of 'get_test_property' command does not correspond to documentation.
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.
No tags attached.
Issue History
2011-01-15 11:40prokherNew Issue
2011-01-17 09:22Brad KingAssigned To => Brad King
2011-01-17 09:22Brad KingStatusnew => assigned
2011-01-17 09:22Brad KingNote Added: 0024745
2011-01-17 09:23Brad KingStatusassigned => closed
2011-01-17 09:23Brad KingResolutionopen => fixed
2011-01-31 16:00David ColeFixed in Version => CMake 2.8.4
2011-01-31 16:00David ColeTarget Version => CMake 2.8.4

Notes
(0024745)
Brad King   
2011-01-17 09:22   
Ugh. Thanks.

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0d7cf495 [^]
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4c980e36 [^]