# Overriding CMAKE\_CXX\_COMPILER with VS2017 on Windows 10

**URL:** https://discourse.cmake.org/t/overriding-cmake-cxx-compiler-with-vs2017-on-windows-10/1311
**Category:** Code
**Tags:** os:windows, gen:vs
**Created:** [June 3, 2020, 10:25am UTC](https://discourse.cmake.org/t/overriding-cmake-cxx-compiler-with-vs2017-on-windows-10/1311 "2020-06-03T10:25:07Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![McMartin](https://discourse.cmake.org/user_avatar/discourse.cmake.org/mcmartin/32/150_2.png) [@McMartin](https://discourse.cmake.org/u/McMartin)
#### Post date: [June 3, 2020, 6:55pm UTC](https://discourse.cmake.org/t/overriding-cmake-cxx-compiler-with-vs2017-on-windows-10/1311/2 "2020-06-03T18:55:14Z")

</div>

This was already discussed in this other topic:

> [@VS generator and toolchain files](https://discourse.cmake.org/t/vs-generator-and-toolchain-files/1177/3):
>
> The VS generator produces .vcxproj files and uses MSBuild to actually drive the build. The values of CMAKE\_{C,CXX}\_COMPILER are computed automatically from the compiler MSBuild chooses so setting them has no effect. With this generator we can only support toolchains that have integration with MSBuild installed such that one could manually create a project using them through the IDE. Both the Intel C/C++/Fortran compilers and NVIDIA CUDA compilers are examples of this. For Visual Studio gener…

---

_[View the full topic](https://discourse.cmake.org/t/overriding-cmake-cxx-compiler-with-vs2017-on-windows-10/1311)._
