ethereum / aleth

Aleth – Ethereum C++ client, tools and libraries
GNU General Public License v3.0
3.97k stars 2.17k forks source link

Update CMake config to generate compile_commands.json #5392

Open halfalicious opened 5 years ago

halfalicious commented 5 years ago

I'd love to use VS Code more since it's far more lightweight compared to full blown Visual Studio but keep running into incomplete include path problems. Apparently CMake can generate compile_commands.json which Visual Studio Code can use to populate include path information for C/C++ projects (see the How to specify the include paths? section of the Configuring includePath for better IntelliSense results readme). I did a recursive search of my Aleth build directory and didn't see this file being generated, it would be nice to update our CMake config at some point to generate it.

chfast commented 5 years ago

I believe I started working on this, but now I cannot find the work.

Anyway, for quick workaround build with cmake option -DCMAKE_EXPORT_COMPILE_COMMANDS=ON.