# cmake failed to get the value of VCTargetsPath with VS2019 16.7

**URL:** https://discourse.cmake.org/t/cmake-failed-to-get-the-value-of-vctargetspath-with-vs2019-16-7/1839
**Category:** Usage
**Tags:** comp:msvc, gen:vs, os:windows
**Created:** [September 14, 2020, 1:19pm UTC](https://discourse.cmake.org/t/cmake-failed-to-get-the-value-of-vctargetspath-with-vs2019-16-7/1839 "2020-09-14T13:19:34Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![JuliusCaesar](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/j/85e7bf/32.png) [@JuliusCaesar](https://discourse.cmake.org/u/JuliusCaesar)
#### Post date: [September 16, 2020, 12:16pm UTC](https://discourse.cmake.org/t/cmake-failed-to-get-the-value-of-vctargetspath-with-vs2019-16-7/1839/13 "2020-09-16T12:16:32Z")

</div>

> Try running cmake using the form `env TEMP= TMP= cmake ...`

do you mean to place this at the top of my build script?

---

_[View the full topic](https://discourse.cmake.org/t/cmake-failed-to-get-the-value-of-vctargetspath-with-vs2019-16-7/1839)._
