ctest_build() not displaying error output from ninja
In my ctest script, I call ctest_build() twice. The first time, I use a large -j value, for speed. Sometimes the Intel compiler runs out of memory, so in the script, I catch the failure of the first build call, then re-run ctest_build() and change the -j value to 4 in the CTEST_BUILD_COMMAND.
A compiler/linker error occurs (and is visible in Testing/Temporary/LastBuild***), but it doesn't show up in Build.xml. All I get is a message of "*** WARNING non-zero return value in ctest from: ninja".
So, it's correctly detecting the build failure somewhat, but for some reason the output is missing (and the build looks like it succeeded at first glance on CDash). Am I misuing the system, or is this a bug?