[CMake] CDT generator help: path discovery and other items

Dixon, Joel L. JOEL.L.DIXON at saic.com
Mon Jun 3 13:28:28 EDT 2013


I'm new to CMake, and loving it.  I'm using version 2.8.11 and have a couple issues with the CDT generator.

 

First, there's really no definitive help (that I've found) for the CDT generator.  The HTML generator just simply mentions the generator, it doesn't mention any of the options that I've stumbled upon in mentions out on the open web, such as:

  CMAKE_ECLIPSE_MAKE_ARGUMENTS=<>

    You can use this to add things such as "-j4" to increase the number of parallel jobs during builds

  CMAKE_ECLIPSE_VERSION=<>

    Setting this to "3.7" for my CDT version made a difference.

 

Are there others?  Where are they documented?

 

The only official help I've found was at http://www.cmake.org/Wiki/Eclipse_CDT4_Generator, and this seems to be quite out of date.

 

Secondly, path discovery wasn't nearly automatic.  Even after a build, opening a C++ file showed unresolved inclusions for every STL include (such as <iostream>)  It took me a while, but I finally found that going to the Project Properties, then "C/C++ project paths", "Path Containers", "Add..." and adding the "Discovered scanner configuration scanner" and doing a fresh build and Index rebuild that everything was fine.

 

Finally, doing any edits to the project from WITHIN Eclipse are lost whenever having to re-run cmake.  For example, adding project filters to hide "CMakeFiles", Qt4 files (such as *.moc, ui_*.h, etc), these filters are lost if you have to rerun cmake when adding a new source file to the project.

 

Thanks again for the great product!

 

J. Lee Dixon

Sr Software Engineer - SAIC

joel.l.dixon at saic.com

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130603/29a5a1a3/attachment.htm>


More information about the CMake mailing list