# Latest update to Visual Studio causes cmake problem?

**URL:** <https://forum.audacityteam.org/t/latest-update-to-visual-studio-causes-cmake-problem/115922>\
**Category:** Compiling Audacity\
**Created:** [August 26, 2024, 4:51pm UTC](https://forum.audacityteam.org/t/latest-update-to-visual-studio-causes-cmake-problem/115922 "2024-08-26T16:51:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![roadsterUK](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/roadsteruk/32/37115_2.png) [@roadsterUK](https://forum.audacityteam.org/u/roadsterUK)\
**Post date:** [August 26, 2024, 4:51pm UTC](https://forum.audacityteam.org/t/latest-update-to-visual-studio-causes-cmake-problem/115922/1 "2024-08-26T16:51:45Z")

</div>

Windows 11 Visual Studio 19 2022

The cmake command line stops because version 194 ( aka C/C++ Optimizing Compiler Version 19.41.34120) is not recognised. Error prompt says 193 is the latest acceptable.

I can’t find an easy work round although uninstalling the latest update should work if the experts can’t suggest better.

---

<div class="post-metadata">

**Author:** ![roadsterUK](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/roadsteruk/32/37115_2.png) [@roadsterUK](https://forum.audacityteam.org/u/roadsterUK)\
**Post date:** [September 2, 2024, 8:22am UTC](https://forum.audacityteam.org/t/latest-update-to-visual-studio-causes-cmake-problem/115922/2 "2024-09-02T08:22:02Z")

</div>

I have gone a bit further with this and altered the compiler version in the conan default profile and settings.yml to 194 . This takes the build a bit further but eventually fails as follows

```auto
ERROR: expat/2.5.0@audacity/stable: Error in generate() method, line 59
        tc = CMakeToolchain(self)
        KeyError: '194'

```

So there is another reference some where that needs changing. This is the limit of my knowledge so I’ll give up until someone with proper skills can fix it.

---

<div class="post-metadata">

**Author:** ![roadsterUK](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/roadsteruk/32/37115_2.png) [@roadsterUK](https://forum.audacityteam.org/u/roadsterUK)\
**Post date:** [September 5, 2024, 9:44am UTC](https://forum.audacityteam.org/t/latest-update-to-visual-studio-causes-cmake-problem/115922/4 "2024-09-05T09:44:22Z")

</div>

I updated cmake from 3.28 to 3.30 without any change in outcome.

---

<div class="post-metadata">

**Author:** ![roadsterUK](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/roadsteruk/32/37115_2.png) [@roadsterUK](https://forum.audacityteam.org/u/roadsterUK)\
**Post date:** [September 22, 2024, 11:48am UTC](https://forum.audacityteam.org/t/latest-update-to-visual-studio-causes-cmake-problem/115922/6 "2024-09-22T11:48:49Z")

</div>

Pleased to say that further updates have fixed this problem. The versions that work are:-

Visual Studio Community 17.11.4 ( from 17.11.3 which failed)

Audacity 3.6.4 ( was 3.6.2 )

Can’t say why but its working flawlessly with these versions.
