I have added this custom target to my CMakeList.txt
file.
System: Windows 7, TDMGCC MinGW32, and Ninja latest from GitHub.
ADD_CUSTOM_TARGET(unittest_run
COMMAND test1.exe > result.testresult
COMMAND test2.exe >> result.testresult
COMMAND type result.testresult
)
The problem is that when test1.exe
fails I generate a fail output, but it seems that there is also some error code coming which causes a problem. ninja: build stopped: subcommand failed.
How can I tell CMake it should ignore return errors?