I'm wanting to get a path that points me to where vcvarsall.bat might live. It's usually in the VS installation directory, and I was wondering if there was a nice convenient CMake variable that could tell me where Visual Studio is located.<br>
<br>"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat<br><br>I see from the documentation we have various variables regarding which version of visual studio we have:<br><br><b><a name="variable:MSVC_IDE"><b><code></code></b></a></b><a name="variable:MSVC_IDE"></a><a name="variable:MSVC_VERSION"></a><b><a name="variable:CMAKE_CL_64"><b><code>CMAKE_CL_64<br>
</code></b></a></b><a name="variable:CMAKE_CL_64"></a><b><a name="variable:CMAKE_COMPILER_2005"><b><code>CMAKE_COMPILER_2005<br></code></b></a></b><a name="variable:MSVC_IDE"></a><b><a name="variable:MSVC_IDE"><b><code>MSVC_IDE<br>
</code></b></a></b><b><a name="variable:MSVC_VERSION"><b><code>MSVC_VERSION<br></code></b></a></b><b><a name="variable:CMAKE_CL_64"><b><code></code></b></a></b><br>In my cache the path to cl is simply cl:<br>CMAKE_C_COMPILER:FILEPATH=cl<br>
<br>Thanks,<br>James<br><b><a name="variable:CMAKE_CL_64"><b><code></code></b></a></b><b><a name="variable:MSVC_VERSION"><b><code></code></b></a></b><b><a name="variable:MSVC_IDE"><b><code></code></b></a></b>