cmake and setting target triple

Hi,

What is the Cmake equivalent to configures target option [ ./configure --target=avr-atmel-none] ?

–John

John Myers <atomicdog.jwm@gmail.com> writes:

What is the Cmake equivalent to configures target option [ ./configure
--target=avr-atmel-none] ?

In the cmake invocation from the command line set the variable
LLVM_DEFAULT_TARGET_TRIPLE like this:

-DLLVM_DEFAULT_TARGET_TRIPLE=avr-atmel-none

I'm not 100% sure it is right, though. That variable was not declared
nor documented.

OTOH, if you want to cross-compile, see

http://llvm.org/docs/CMake.html#cross-compiling