<div dir="ltr">I just made a progress about this issue. The problem where Eclipse CDT deletes my include paths is not direct related to CMake, because, even a Eclipse restart results on all my include paths to disappear.<div>
<br></div><div style>I "solved" it by setting the Eclipse automatic discovery of paths/symbols command to "/usr/bin/clang++ -E -P -v -dD ${plugin_state_location}/${specs_file} -std=c++11 -stdlib=libc++" then in "C/C++ Project Paths" -> "Path Containers" I use this discovery. This way, Eclipse preserves both CMake and default Clang includes/symbols.</div>
<div style><br></div><div style>Still, may not be a good solution as CMake parsing the clang++ output and including the paths, but good enough to get my work done..</div><div style><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Dec 30, 2012 at 2:05 PM, Alexander Neundorf <span dir="ltr"><<a href="mailto:a.neundorf-work@gmx.net" target="_blank">a.neundorf-work@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Wednesday 26 December 2012, Allan Hasegawa wrote:<br>
> Hello,<br>
><br>
> I'm currently using Linux with the Clang compiler. When CMake asks what<br>
> compiler/toolchain to use, I specify my compiler manually<br>
> (/usr/bin/clang++) and the Eclipse CDT Generator...<br>
><br>
> The problem is, when I generate the project for Eclipse CDT, it do not set<br>
> any include paths or predefined symbols, so, Eclipse can not find system<br>
> libs/headers. I can fix this problem temporary by running the command<br>
> "clang -v -x c++ -std=c++11 -" and including manually each include path,<br>
> but, as soon as I change my CMakeLists.txt files, I have to do it all<br>
> again, as the project configuration seems to be erased when CMake is rerun.<br>
><br>
> I could hard-code the include paths in the CMakeLists.txt, but this will<br>
> break the project for the others people using it. I tried to search for a<br>
> solution online, and found a post in this list where they mention to look<br>
> for the Eclipse Generator module, but I do not have this module in my<br>
> system (CMake 2.8.9).<br>
><br>
> Any ideas how to solve this problem?<br>
<br>
</div></div>Please add a ticket in the cmake bug tracker at <a href="http://public.kitware.com/Bug" target="_blank">http://public.kitware.com/Bug</a><br>
for this, I'll have a look.<br>
<br>
Thanks<br>
Alex<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Att.,<br>Allan Yoshio Hasegawa...<br>
</div>