<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I am a long time user of CMake, and I find it very valuable. Thanks for the great tool.<div><br></div><div>I recently started using Eclipse on my 64-bit Mac OS X (version 10.8.4 if that is important) for my projects. The problem is that every time I regenerate my project file (i.e., a CMakeLists.txt file changed) the binary parser gets set to Mach-O Parser and not the Mach-0 64 Parser. What results is that eclipse won't run the code via the debugger, I get the error "Launch failed: Binary not found". To fix it I need to go to the project properties and change the parser back to the 64-bit parser.<div><br></div><div>I've tracked down the problem to cmExtraEclipseCDT4Generator.cxx line 724 (version from git). Here's the code:</div><div><br></div><div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); ">&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;if&nbsp;(systemName&nbsp;==&nbsp;"Darwin")</div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); "> &nbsp;&nbsp;&nbsp;  {</div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); ">&nbsp;&nbsp;&nbsp;&nbsp;  fout&nbsp;&lt;&lt;&nbsp;"&lt;extension&nbsp;id=\"org.eclipse.cdt.core.MachO\""</div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); "> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&nbsp;point=\"org.eclipse.cdt.core.BinaryParser\"&gt;\n"</div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); "><a id="l728" href="http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmExtraEclipseCDT4Generator.cxx;hb=HEAD#l728" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none; "> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&lt;attribute&nbsp;key=\"c++filt\"&nbsp;value=\"c++filt\"/&gt;\n"</div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); "><a id="l729" href="http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmExtraEclipseCDT4Generator.cxx;hb=HEAD#l729" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none; "> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&lt;/extension&gt;\n"</div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); "><a id="l730" href="http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmExtraEclipseCDT4Generator.cxx;hb=HEAD#l730" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none; "> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;</div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); "><a id="l731" href="http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmExtraEclipseCDT4Generator.cxx;hb=HEAD#l731" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none; "> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</div></div><div><br></div><div>This is for the old parser that apparently is going to be removed soon (see the eclipse bug tracker discussion&nbsp;<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=270790">https://bugs.eclipse.org/bugs/show_bug.cgi?id=270790</a>). Since version 6.0.2 the 64-bit parser has been supported and is the preferred binary parser, I believe. I don't know the best change to keep versions prior to 6.0.2 supported, but I think that the following code will set the parser to the more recent one and stop me from having to manually set the binary parser every time the eclipse project gets rebuilt:</div><div><br></div><div><div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); ">&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;if&nbsp;(systemName&nbsp;==&nbsp;"Darwin")</div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); "> &nbsp;&nbsp;&nbsp;  {</div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); ">&nbsp;&nbsp;&nbsp;&nbsp;  fout&nbsp;&lt;&lt;&nbsp;"&lt;extension&nbsp;id=\"org.eclipse.cdt.core.MachO64\""</div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); "> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&nbsp;point=\"org.eclipse.cdt.core.BinaryParser\"&gt;\n"</div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); "><a id="l728" href="http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmExtraEclipseCDT4Generator.cxx;hb=HEAD#l728" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none; "> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&lt;attribute&nbsp;key=\"c++filt\"&nbsp;value=\"c++filt\"/&gt;\n"</div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); "><a id="l729" href="http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmExtraEclipseCDT4Generator.cxx;hb=HEAD#l729" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none; "> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&lt;/extension&gt;\n"</div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); "><a id="l730" href="http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmExtraEclipseCDT4Generator.cxx;hb=HEAD#l730" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none; "> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;</div><div class="pre" style="font-family: monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255); "><a id="l731" href="http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmExtraEclipseCDT4Generator.cxx;hb=HEAD#l731" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none; "> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</div></div><div><br></div><div>I hope I've provided enough info to get a fix for this problem, if there's anything else I can do let me know.</div></div></div><div><br></div><div apple-content-edited="true">----<br>David D. Marshall, Ph.D.<br>Associate Professor<br>Aerospace Engineering&nbsp;Department<br>California Polytechnic State&nbsp;University<br>San Luis Obispo, California 93407-0352<br><a href="mailto:ddmarsha@calpoly.edu">ddmarsha@calpoly.edu</a><br>(805) 756-6849 (p)<br>(805) 756-2376 (f)

</div>
<br></body></html>