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

[email protected]

 

 

--

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

Reply via email to