There is a specific compiler flag that I&#39;m telling CMake to use for the MSVC compiler, however this flag is only supported by MSVC90 and higher. Right now I&#39;m doing this:<div><br></div><div>if( MSVC90 )</div><div>...</div>
<div>endif()</div><div><br></div><div>But how do I check something like this:</div><div><br></div><div>if( MSVC_VERSION GREATER 9 OR MSVC_VERSION EQUAL 9 )</div><div>...</div><div>endif()</div><div><br></div><div>I realize MSVC_VERSION doesn&#39;t exist, but this is mainly pseudocode to show you what I&#39;m looking for. Help is appreciated.</div>