vscode-cmake-tools-helper icon indicating copy to clipboard operation
vscode-cmake-tools-helper copied to clipboard

Empty includes and defines

Open Yanpas opened this issue 7 years ago • 6 comments

Cmake 3.8.2 Ubuntu 16.04

c_cpp_properties json looks like

"name": "null",
"includePath": [],
"defines": [],

while .cmaketools.json contains all include paths:

My project consists of main CMakeLists file and includes many other CMakeLists with some other targets.

Yanpas avatar Sep 19 '17 10:09 Yanpas

It even removed system includes: /usr/include/ etc.

Yanpas avatar Sep 19 '17 10:09 Yanpas

Duplicate of https://github.com/maddouri/vscode-cmake-tools-helper/issues/4?

JulZimmermann avatar Oct 05 '17 14:10 JulZimmermann

This bug contains bug #4. In my case include paths are absolutely empty, there are no system paths and cmake ones

Yanpas avatar Oct 05 '17 15:10 Yanpas

try to select not the target all. It depends on your project I think, but for me the all target does not produce anything too...

gabyx avatar Dec 15 '17 22:12 gabyx

@gabyx advice works for me, except that it does not find system includes..

I have to execute gcc -v -E -x c++ - to get those and afterwards put them in manually. Afterwards it works like a charm :)

a-teammate avatar Dec 26 '17 20:12 a-teammate

This bug affects me too. It doesn't work when I change the target.

barsan-md avatar Feb 13 '18 15:02 barsan-md