<br><div class="gmail_quote">2009/4/2 Philip Lowman <span dir="ltr"><<a href="mailto:philip@yhbt.com">philip@yhbt.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div><div></div><div class="h5">On Thu, Apr 2, 2009 at 7:00 AM, Stephen Collyer <span dir="ltr"><<a href="mailto:scollyer@netspinner.co.uk" target="_blank">scollyer@netspinner.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In the course of installation, I want to copy the redistributable C++ runtime libs<br>directory from VS into my deliverable package. However, this should work with<br>both VS8 and VS9. Could someone tell me how I can detect the build environment<br>
and locate the appropriate directory to do this ? For example, if building with <br>VS9 I want to locate the directory:<br><br>C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT<br clear="all">
<br>
I'm guessing that there's a CMAKE_* variable that allow me to do this,<br>but I'm not sure which.</blockquote></div></div><div><br>You can include InstallRequiredSystemFiles for this. See:<br><a href="http://www.cmake.org/cmake/help/cmake2.6docs.html#module:InstallRequiredSystemLibraries" target="_blank">http://www.cmake.org/cmake/help/cmake2.6docs.html#module:InstallRequiredSystemLibraries</a><br>
<br>VS9 support was added to this script and I believe it was first added in CMake 2.6.0<br><br></div></div>-- <br><font color="#888888">Philip Lowman<br>
</font></blockquote></div><br><br clear="all">Thanks for that - I'd completely forgotten about the existence of that module.<br>
<br>
I've tried it and I have one question though - it seems to dump the manifest and<br>
DLLs into the bin directory - it was my understanding that these had to go into<br>
a subdirectory of bin called Microsoft.VC80.CRT. Am I misinformed ?<br>
<br>
If it works, it's very convenient though.<br>
<br>
--<br>Stephen Collyer<br>