View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015812CMakeCMakepublic2015-10-27 15:292016-06-10 14:31
ReporterChris Green 
Assigned ToKitware Robot 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionmoved 
PlatformApple MacOSOS XOS Version10.4.10
Product VersionCMake 3.3.2 
Target VersionFixed in Version 
Summary0015812: Generator expressions to support test properties
DescriptionAs 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.
Steps To ReproduceUse 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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0039688)
Stephen Kelly (developer)
2015-10-27 15:49

Mailing list thread:

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/53769 [^]
(0042866)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2015-10-27 15:29 Chris Green New Issue
2015-10-27 15:49 Stephen Kelly Note Added: 0039688
2016-06-10 14:29 Kitware Robot Note Added: 0042866
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team