For MPI builds, CMake will first try to compile a sample MPI program.