You really can't, unfortunately because only one configuration is possible per CMake build directory with the Makefile generator. Most people set CMAKE_BUILD_TYPE to Debug when using the Eclipse CDT4 Generator so they can debug.<div>
<br></div><div>If you need to test regularly with release binaries, one solution is to create a second build directory with CMAKE_BUILD_TYPE set to Release pointing it to the same source tree as your Debug build.</div><div>
<br></div><div><div class="gmail_quote">On Tue, Nov 16, 2010 at 7:09 AM, Andrea Galeazzi <span dir="ltr"><<a href="mailto:galeazzi@korg.it">galeazzi@korg.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I followed the tutorial at <a href="http://www.cmake.org/Wiki/Eclipse_CDT4_Generator" target="_blank">http://www.cmake.org/Wiki/Eclipse_CDT4_Generator</a> in order to generate an Eclipse project.<br>
The only difference is that I select eclipseCDT - MiinGW Makefiles instead of eclipseCDT -Unix Makefiles".<br>
What I don't understand is how can I manage multiple configurations in the same project (for example Debug/Release) if the cmake-gui requires a specific CMAKE_BUILD_TYPE.<br>
Sorry but I'm a CMake newbie......<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Philip Lowman<br>
</div>