The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15812 
====================================================================== 
Reported By:                Chris Green
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15812
Category:                   CMake
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-10-27 15:29 EDT
Last Modified:              2015-10-27 15:29 EDT
====================================================================== 
Summary:                    Generator expressions to support test properties
Description: 
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.

Steps to Reproduce: 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-10-27 15:29 Chris Green    New Issue                                    
======================================================================

-- 

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