[llvm-commits] [PATCH][CMake] Removing LLVMLibDeps.cmake and exporting libraries for CMake clients.

Óscar Fuentes ofv at wanadoo.es
Sat Sep 11 14:41:46 PDT 2010


Francois Pichet <pichet2000 at gmail.com>
writes:

> Since we are discussing cmake, i'll put forward my only complain about
> the current cmake system.
> I generate my projects/solution using
>    CMake -G "Visual Studio 9 2008"
>
> then when I open llvm.sln, I see these:
> brainF
> Kaleidoscope-Ch2
> Kaleidoscope-Ch3
> Kaleidoscope-Ch4
> Kaleidoscope-Ch5
> Kaleidoscope-Ch6
> Kaleidoscope-Ch7
> Fibonacci
>
> Nice examples but after you looked at them once they just add to build
> time. would it be possible to remove them from the main solution?

Please see

http://www.llvm.org/docs/CMake.html#llvmvars

and specifically LLVM_BUILD_EXAMPLES. When that variable is OFF (the
default since 10 months ago) build targets for the LLVM examples are
created, but they are not part of the ALL target. Hence, they are not
rebuilt unless you explitictly ask for it.




More information about the llvm-commits mailing list