Don&#39;t do this on line 175: (just delete the line)<div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; border-collapse: collapse; line-height: 16px; white-space: pre; ">BUILD_COMMAND ${CMAKE_BUILD_TOOL}</span></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="border-collapse: collapse; line-height: 16px; white-space: pre;"><br></span></font></div><div>Instead, just let cmake compute the BUILD_COMMAND for you...</div>
<div><br></div><div>The default build command for ExternalProject_Add for cmake-built projects is something like:</div><div>cmake --build . --config Release</div><div><br></div><div><br></div><div>HTH,</div><div>David</div>
<div><br></div><div><br><div class="gmail_quote">On Tue, Aug 24, 2010 at 4:21 PM, Guillaume Duhamel <span dir="ltr">&lt;<a href="mailto:guillaume.duhamel@gmail.com">guillaume.duhamel@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div><br></div><div>I&#39;m using ExternalProject_Add to build a native-only part of my project.</div><div>When used with Visual Studio, the build step only opens a new Visual</div><div>Studio instance and doesn&#39;t automatically start building... in fact, it</div>

<div>doesn&#39;t even choose the solution file.</div><div><br></div><div>Is there any way to automatically open a solution file and start building?</div><div><br></div><div>If it can help, here is my CMakelist.txt :</div>

<div><a href="http://yabause.svn.sourceforge.net/viewvc/yabause/branches/yabause-cmake/src/CMakeLists.txt?revision=2574&amp;view=markup" target="_blank">http://yabause.svn.sourceforge.net/viewvc/yabause/branches/yabause-cmake/src/CMakeLists.txt?revision=2574&amp;view=markup</a></div>

<div><br></div><div>Thanks,</div><div>Guillaume</div><font color="#888888"><div><br></div>
</font><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></div>