[cfe-dev] compile_commands.json for Windows/MSVC

Richard legalize at xmission.com
Mon Aug 12 20:53:35 PDT 2013


In article <CAHnXoan3PPNyDF=O1F43vuMjZLydMHJVkdPZ_jz7Fg3iJpXGJA at mail.gmail.com>,
    Sean Silva <silvas at purdue.edu> writes:

> Make sure that you have the latest CMake

> "c:\Program Files (x86)\CMake 2.8"\bin\cmake --version
cmake version 2.8.11.2

> and that you are generating
> projects as if clang was the compiler

I followed the directions here:
<http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html>

and ran this command:

cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ../llvm

I get this message at the end:

CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_COMPILE_COMMANDS

...and sure enough, I don't have a compile_commands.json.

What did I do wrong?
-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
     The Computer Graphics Museum <http://computergraphicsmuseum.org>
         The Terminals Wiki <http://terminals.classiccmp.org>
  Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>



More information about the cfe-dev mailing list