<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I’m new to CMake, and loving it. I’m using version 2.8.11 and have a couple issues with the CDT generator.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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:<o:p></o:p></p><p class=MsoNormal> CMAKE_ECLIPSE_MAKE_ARGUMENTS=<><o:p></o:p></p><p class=MsoNormal> You can use this to add things such as “-j4” to increase the number of parallel jobs during builds<o:p></o:p></p><p class=MsoNormal> CMAKE_ECLIPSE_VERSION=<><o:p></o:p></p><p class=MsoNormal> Setting this to “3.7” for my CDT version made a difference.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Are there others? Where are they documented?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The only official help I’ve found was at <a href="http://www.cmake.org/Wiki/Eclipse_CDT4_Generator">http://www.cmake.org/Wiki/Eclipse_CDT4_Generator</a>, and this seems to be quite out of date.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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 *<b>.moc, ui_</b>*.h, etc), these filters are lost if you have to rerun cmake when adding a new source file to the project.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks again for the great product!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>J. Lee Dixon<o:p></o:p></p><p class=MsoNormal>Sr Software Engineer - SAIC<o:p></o:p></p><p class=MsoNormal><a href="mailto:joel.l.dixon@saic.com">joel.l.dixon@saic.com</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>