I am trying to redirect stdout and stderr to the same file using CMake. I use the execute_process parameter in CMake with the ERROR_FILE and OUTPUT_FILE .
I successfully write the output, but there is no error there. What am I doing wrong?
CMakeLists.txt File
add_test(NAME test${ID} COMMAND ${CMAKE_COMMAND} -DEXE=../examples/test${exampleID} -DID=${ID} -DARGS=${args} -P ${CMAKE_CURRENT_SOURCE_DIR}/Tester.cmake )
File Tester.cmake
separate_arguments( ARGS ) # Run the test execute_process( COMMAND "${EXE}" ${ARGS} ERROR_FILE test${ID}.out OUTPUT_FILE test${ID}.out )
source share