Re: [CMake] Conditional post test behavior

2011-05-09 Thread Tyler
I think the canonical way to do this is by handling this logic in a wrapper script. add_test -> wrapper script -> run test -> check status and delete if OK hth, tyler On Sat, May 7, 2011 at 3:13 PM, Belcourt, K. Noel wrote: > Hi, > > I apologize if th

[CMake] Conditional post test behavior

2011-05-07 Thread Belcourt, K. Noel
Hi, I apologize if this has been asked and answered. Is there a way to execute some commands after a test has run where the commands can be different depending on whether the test passes or not? Here's my test. add_test( NAME ex7_2_fmelcor WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}