[CMake] Checking MSVC90 or higher?

Robert Dailey rcdailey at gmail.com
Sat Jun 27 15:30:36 EDT 2009


On Sat, Jun 27, 2009 at 2:16 PM, Tyler Roscoe <tyler at cryptio.net> wrote:

> On Sat, Jun 27, 2009 at 01:41:58PM -0500, Robert Dailey wrote:
> > There is a specific compiler flag that I'm telling CMake to use for the
> MSVC
> > compiler, however this flag is only supported by MSVC90 and higher. Right
> > now I'm doing this:
> >
> > I realize MSVC_VERSION doesn't exist
>
> O RLY?
>
> http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:MSVC_VERSION
>
> One of the Windows platform modules uses this if you want to see an
> example.


Holy crap! I didn't know that existed :)

The problem is that there is no central location for this data. I was
referencing the useful
variables<http://www.cmake.org/Wiki/CMake_Useful_Variables>page on the
CMake Wiki, and no mention of MSVC_VERSION existed.

Thanks for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090627/4248c987/attachment.htm>


More information about the CMake mailing list