BTW, the command I used for cmake was: cd build/eclipsetest cmake -G"Eclipse CDT4 - Unix Makefiles" -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE -DCMAKE_BUILD_TYPE=Debug ../../eclipsetest
-----Original Message----- From: Chatterjee, Shash Sent: Thu 3/24/2011 8:47 AM To: [email protected] Cc: [email protected] Subject: RE: [CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols Hi Alex, I have attached a tar file with a tiny example project that shows the behaviour. Screenshot-1 shows the problem (this is the config included in the tar file), Screenshot-2 shows the state after I fixed it manually. Thanks, Shash -----Original Message----- From: Alexander Neundorf [mailto:[email protected]] Sent: Sun 3/20/2011 11:33 AM To: Chatterjee, Shash Cc: [email protected] Subject: Re: [CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols On Wednesday 16 March 2011, Chatterjee, Shash wrote: > Hi Alex, > > In my case, I get little yellow icons with a question mark on the editor's > left-hand gutter, with a "unresolved inclusion: <blah>". This happens on > every new import, but also if I make changes to any CMakeLists.txt file > within the project and CMake regenerates the .cproject file. > > On my project, without the path container, I do not have (see attached > screenshot) paths like: > > /usr/include/c++/4.5.1 > /usr/include/c++/4.5.1/i686-redhat-linux > /usr/include/c++/4.5.1/backward > /usr/local/include > /usr/lib/gcc/i686-redhat-linux/4.5.1/include > /usr/include > > I do not have these paths included explicitly with INCLUDE_DIRECTORIES() > (and I do just that to temporarily workaround this). I suspect that in > your project these paths are explicitly defined somewhere, or, No, I don't. I just tried again, and I don't get the little yellow icons for stuff like stdio.h. Adding the line you propose doesn't change the behaviour here. Can you send me such a .cproject file from your system where it doesn't work ? Maybe for some reason the collecting of built-in include dirs and macros doesn't work on your system. Alex
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
