[CMake] How to get current visualstudio version?

Xi Shen davidshen84 at gmail.com
Fri Dec 25 04:36:05 EST 2015


Hi,

I know I can check MSVC to determine if the Visual Studio generator is
used. But how do I find out which version is been used?

The reason I want to find the the version of VS being used, is because I
need to link to the Boost libraries. Boost create its libraries with
suffixes like "-vs120-mt", etc. and "vs120" indicates Visual Studio 2013.

Thanks,
David

-- 

Regards,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151225/e6cc4c76/attachment.html>


More information about the CMake mailing list