I understand from the document that I should be able to configure llvm with only specific targets
by passing -DLLVM_TARGETS_TO_BUILD=some-backend to cmake.
However, I get the following errors whenever I don’t include X86 in the target list:
CMake Error at cmake/modules/LLVMConfig.cmake:127 (message):
Library `X86’ not found in list of llvm libraries.
Call Stack (most recent call first):
– Configuring incomplete, errors occurred!
When I try the autotools, I can get what I want by running configure with --enable-targets=some-backend
Any ideas? I use cmake 2.8.0 on a fedora 10 i686 and I check out llvm from the svn repository.