<p>Philip,<br><br>You seem to be right. Changing the build target to the name of my project did the trick. I can now run and debug the program successfully.<br><br>Thank you,<br>Félix C. Morency<br></p><br><div><span class="gmail_quote">On 3/2/08, <b class="gmail_sendername">Philip Lowman</b> &lt;<a href="mailto:philip@yhbt.com">philip@yhbt.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><span class="e" id="q_118726ce9036a7c9_0">On Sun, Mar 2, 2008 at 7:06 PM, Félix C. Morency &lt;<a href="mailto:felix.morency@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">felix.morency@gmail.com</a>&gt; wrote:<br>
</span></div><div class="gmail_quote"><div><span class="e" id="q_118726ce9036a7c9_2"><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<p>Hi,<br><br>I just discovered that CMake SVN (future 2.6.0) currently supports CodeBlocks project generation. I gave it a try and the result seems promising. I&#39;ve been able to successfully compile my project under CodeBlocks 8.02.<br>


<br>However, running the program (which is a command line program) from CodeBlocks with the &quot;Run&quot; command doesn&#39;t work. The error is: &quot;You can&#39;t run a commands-only target...&quot;. Another issue is the debugging tool which doesn&#39;t start with this error: &quot;The selected target is only running pre/post build step commands. Can&#39;t debug such a target...&quot;.<br>


<br>I guess those issues come from CMake since all those features work with what I call a &quot;pure CodeBlocks project&quot;. Are those issues already known and if yes, are you planning on fixing them with the release of the 2.6.0 version ?</p>

</blockquote></span></div><div>Félix,<br><br>I don&#39;t know anything about CodeBlocks but I do know with the Visual Studio generator the default project is ALL_BUILD which you can&#39;t debug.&nbsp; In order to Debug with Visual Studio you have to right click on the desired target and choose Debug (or change your default project).&nbsp; Maybe there&#39;s a similar issue with CodeBlocks?<br>

<br>Be sure to file a bug on this issue in the CMake bug database if you&#39;re still having problems.<br><br><a href="http://www.cmake.org/Bug/main_page.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.cmake.org/Bug/main_page.php</a><br>
</div></div><br>
-- <br><span class="sg">Philip Lowman
</span></blockquote></div><br>