[CMake] Auto-include Clang default include paths in Eclipse CDT

Alexander Neundorf a.neundorf-work at gmx.net
Sun Dec 30 14:13:04 EST 2012


On Sunday 30 December 2012, Allan Hasegawa wrote:
> 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.
> 
> 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.
> 
> 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..

please add a aticket, so I don't forget it.

Thanks
Alex


More information about the CMake mailing list