[LLVMdev] Excluding project builds

Dan Liew dan at su-root.co.uk
Tue Jul 7 15:38:00 PDT 2015


On 7 July 2015 at 15:05, David A. Greene <greened at obbligato.org> wrote:
> I'm learning the cmake build.
>
> Is there a way to disable the build of a subdirectory in llvm/projects?
> I'm getting a build error on one project and don't want it to hold up
> the build of everything else.

In your LLVM build directory run

$ cmake -DLLVM_BUILD_EXAMPLES=OFF /path/to/llvm/source

(note if you are using the makefile build you can run ``make
edit_cache`` to do the above).

If you are still having problems you could also set
LLVM_INCLUDE_EXAMPLES to OFF.

If you use ccmake or cmake gui these options are easily visibile,
you'll see a whole bunch of other useful options.

HTH,
Dan



More information about the llvm-dev mailing list