[Bro-Dev] Bifcl and CMake
Jonathan Siwek
jsiwek at ncsa.illinois.edu
Thu Dec 9 17:50:42 PST 2010
> Can you tell CMake to remove the generated output files (if they
> exist) when an add_custom_command failed?
I'm not sure there's a special CMake way to do it, but you can try appending " || (rm -f ${bifOutputs} && exit 1)" to the ARGS parameter of the add_custom_command.
Then when `bifcl` exists with non-zero exit status, the `rm` would get invoked and then the `exit 1` would cause the CMake build to abort.
Want to try it out and put it on the fastpath if it works for you?
- Jon
More information about the bro-dev
mailing list