For non-CMake project (especially VS native ones) you could use ${CMAKE_CFG_INT_DIR} variable instead (<a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_CFG_INTDIR">http://www.cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_CFG_INTDIR</a>)<div>
<br></div><div>It will be evaluated into current solution's configuration. However please note that in this case configurations in CMake should be the same as in nested project.</div><div><br></div><div>And may be I misunderstood your question, butĀ BUILD_COMMAND in external project should work without extra quotes (that is msbuild '/p:Configuraion' ...). I suppose /p gets converted to \p because CMake interprets this whole string as path to binary and converts path separator to native form (which is back-slash on windows).<br>
<br><div class="gmail_quote">On Sun, Aug 7, 2011 at 1:15 AM, Bill Hoffman <span dir="ltr"><<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 8/6/2011 11:53 AM, Richard Offer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi,<br>
<br>
I'm trying to build Google protocol buffers as an external project on<br>
Windows and am hitting an issue with over assuming something is a path.<br>
<br>
<br>
I need to be able to call msbuild with options. (/p:Configuration=Debug),<br>
but cmake converts this to \p:Configuration=Debug before passing the<br>
string to msbuild.<br>
<br>
</blockquote></div>
This might work:<br>
<br>
cmake --build path/to/project --config Debug<div><div></div><div class="h5"><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>
</div></div></blockquote></div><br></div>