# Compiling Cling on Windows MSVC 2022

**URL:** <https://root-forum.cern.ch/t/compiling-cling-on-windows-msvc-2022/47106>\
**Category:** Cling\
**Tags:** cling\
**Created:** [October 4, 2021, 12:14pm UTC](https://root-forum.cern.ch/t/compiling-cling-on-windows-msvc-2022/47106 "2021-10-04T12:14:20Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [October 5, 2021, 1:52pm UTC](https://root-forum.cern.ch/t/compiling-cling-on-windows-msvc-2022/47106/17 "2021-10-05T13:52:03Z")

</div>

Oh, sorry, I mean (in your example):

```auto
cmake -G"Visual Studio 17 2022" -A x64-Thost=x64 -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX=c:/bin/cling/ ../src

```

and then:

```auto
cmake --build . --config Release

```

---

_[View the full topic](https://root-forum.cern.ch/t/compiling-cling-on-windows-msvc-2022/47106)._
