Hi, What is the Cmake equivalent to configures target option [ ./configure --target=avr-atmel-none] ? --John -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120710/5405f54b/attachment.html>
John Myers <atomicdog.jwm at 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