MantisBT - CMake
View Issue Details
0015812CMakeCMakepublic2015-10-27 15:292016-06-10 14:31
Chris Green 
Kitware Robot 
normalfeatureN/A
closedmoved 
Apple MacOS X10.4.10
CMake 3.3.2 
 
0015812: Generator expressions to support test properties
As part of a function (cet_test()) to define a test, I invoke add_test(), which invokes a test wrapper script which needs to know the correct return code to use if requirements are not satisfied for the test. The invoker of the cet_test() function may set the SKIP_RETURN_CODE property on the test, and I need to be able to take account of that. If we were talking about target properties, I could quite happily say $<TARGET_PROPERTY:TGT,PROP> as part of the COMMAND definition to add_test(). There does not appear to be an analogous $<TEST_PROPERTY:TST,PROP> I can use to obtain SKIP_RETURN_CODE from the current test properties.
Use add_test to invoke a COMMAND (echo, say) to which you try to pass the value of SKIP_RETURN_CODE to the echo command. As of 3.3.2, there is no way that I can find to do this.
No tags attached.
Issue History
2015-10-27 15:29Chris GreenNew Issue
2015-10-27 15:49Stephen KellyNote Added: 0039688
2016-06-10 14:29Kitware RobotNote Added: 0042866
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0039688)
Stephen Kelly   
2015-10-27 15:49   
Mailing list thread:

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/53769 [^]
(0042866)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.