On Thu, Apr 2, 2009 at 7:00 AM, Stephen Collyer
<[email protected]>wrote:

> In the course of installation, I want to copy the redistributable C++
> runtime libs
> directory from VS into my deliverable package. However, this should work
> with
> both VS8 and VS9. Could someone tell me how I can detect the build
> environment
> and locate the appropriate directory to do this ? For example, if building
> with
> VS9 I want to locate the directory:
>
> C:\Program Files\Microsoft Visual Studio
> 9.0\VC\redist\x86\Microsoft.VC90.CRT
>
> I'm guessing that there's a CMAKE_* variable that allow me to do this,
> but I'm not sure which.


You can include InstallRequiredSystemFiles for this. See:
http://www.cmake.org/cmake/help/cmake2.6docs.html#module:InstallRequiredSystemLibraries

VS9 support was added to this script and I believe it was first added in
CMake 2.6.0

-- 
Philip Lowman
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to