[CMake] Problems C/C++ system headers and Eclipse Generator

Tyler Roscoe tyler at cryptio.net
Mon Jun 8 14:33:49 EDT 2009


On Mon, Jun 08, 2009 at 08:18:40PM +0200, Stefan Dröge wrote:
> Hi, I try to generate a Eclipse project with CMake.
> Generating works, but the "standard" includes, like iostream, are not
> properly included in the eclipse project.
> I've already found this bug report, it describes exactly my problem:
> http://www.vtk.org/Bug/view.php?id=7585
> After reading this I tried CMake 2.6.4 from the downloads page, and
> CMake 2.7.20090607 from CVS (before that I used CMake 2.6.2 from the
> ubuntu repos). But the problem still exists for me.
> 
> I looked in the CMakeCache.txt, and the lines that should point to my
> system headers are empty:
> //CXX compiler system include directories
> CMAKE_ECLIPSE_CXX_SYSTEM_INCLUDE_DIRS:INTERNAL=
> //C compiler system include directories
> CMAKE_ECLIPSE_C_SYSTEM_INCLUDE_DIRS:INTERNAL=

Did you regenerate (that is, delete and recreate) your cache after
installing the new version? If not, the old broken values may be
sticking around from a previous CMake run with an older, unfixed version
of CMake.

tyler


More information about the CMake mailing list