We do much the same but use a batch file called startDevStudio.vs2010.cmake.bat like this in the top level:<br><br>@echo off<br><br>if not exist build\cmake mkdir build\cmake<br>cd build\cmake<br>cmake -G "Visual Studio 10" ..\..\<br>
IF ERRORLEVEL 1 (<br> echo.<br> echo CMake configure failed<br> echo.<br> pause<br> exit 1<br>)<br>start "title" your_project_name.sln<br><br>Using a batch file makes it mostly painless to quit and relaunch Visual Studio.<br>
<br><div class="gmail_quote">On 4 August 2011 09:05, Thomas Sondergaard <span dir="ltr"><<a href="mailto:ts@medical-insight.com">ts@medical-insight.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
It is a bit of a pain to work with Visual Studio 2010 and CMake due to this bug: <a href="http://gccxml.org/Bug/view.php?id=11258" target="_blank">http://gccxml.org/Bug/view.<u></u>php?id=11258</a> (VS 2010 CMake plugin is broken). It doesn't look like much progress is being made with fixing this bug, so I'm looking for workarounds.<br>
<br>
To this point, whenever I've changed anything that I know will cause CMake to rerun I will close the solution, run cmake by hand in a shell and then open the solution again. If someone have developed a better workaround for this I invite them to post it to this thread.<br>
<br>
Thanks,<br>
<br>
Thomas<br>
<br>
______________________________<u></u>_________________<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/<u></u>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/<u></u>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/<u></u>listinfo/cmake</a><br>
</blockquote></div><br>