Cross compile for DevkitPPC

Hello,

I am trying to build a cmake project that will use the devkitppc toolchain inorder to cross compile from windows to Nintendo Wii.

This involves using the powerpc-eabi-gcc compiler, I include the toolchain file that I have constructed, and then make a call to the project() command. At this point the C compiler is then reverted back to msvc. If my understanding is correct, cmake runs a test on the compiler to make sure that it can compile a basic program, and then if not, it reverts back to the default?

One of my questions would be, what can I do in order to ensure that the compiler passes these tests? or how can I check why it fails?

Or is it even possible to use a custom compiler with the visual studios generator at all?

Thanks for your time,
All the best,
Lawrence