[LLVMdev] migrating from autoconf to cmake+ninja

Carsten Mattner carstenmattner at gmail.com
Thu Sep 4 03:44:57 PDT 2014


On Tue, Sep 2, 2014 at 10:55 PM, Carsten Mattner
<carstenmattner at gmail.com> wrote:
> On Wed, Aug 27, 2014 at 4:29 PM, Mueller-Roemer, Johannes Sebastian
> <Johannes.Sebastian.Mueller-Roemer at igd.fraunhofer.de> wrote:
>> prefix = CMAKE_INSTALL_PREFIX
>> enabled-shared = BUILD_SHARED_LIBS
>> targets = LLVM_TARGETS_TO_BUILD (defaults to all, or use a semicolon separated list)
>> disable-assertions = LLVM_ENABLE_ASSERTIONS (obviously inverted ;)
>>
>> I don't believe the others have direct equivalents, however debug/optimized is chosen
>> via CMAKE_BUILD_TYPE
>
> Thank you. I found
> http://llvm.org/docs/CMake.html#options-and-variables and gonna
> try out cmake -G ninja.

It worked and "ninja install" put the stuff in the right target directory but
clang-analyzer is not there. Does anybody know why that happened
with a Cmake build?



More information about the llvm-dev mailing list