It seems like it spawns a process and ctest gets all confused. I've spent enough time with this already. (cherry picked from commit 54e7822c)