# Error install cxx-module on VS 2022

**URL:** https://discourse.cmake.org/t/error-install-cxx-module-on-vs-2022/12774
**Category:** Code
**Tags:** os:windows
**Created:** [October 14, 2024, 9:39pm UTC](https://discourse.cmake.org/t/error-install-cxx-module-on-vs-2022/12774 "2024-10-14T21:39:41Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ClausKlein](https://discourse.cmake.org/user_avatar/discourse.cmake.org/clausklein/32/352_2.png) [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)
#### Post date: [October 15, 2024, 3:08am UTC](https://discourse.cmake.org/t/error-install-cxx-module-on-vs-2022/12774/2 "2024-10-15T03:08:21Z")

</div>

It seems I have to use the the **Ninja** Generator on Windows!  
See limitatons on

> **[C++20 Modules, CMake, And Shared Libraries](https://crascit.com/2024/04/04/cxx-modules-cmake-shared-libraries/)**
>
> See how to install and consume shared libraries with C++20 modules using CMake. This article starts where most basic tutorials stop!

---

_[View the full topic](https://discourse.cmake.org/t/error-install-cxx-module-on-vs-2022/12774)._
