# Investigating /MP with MSVC

**URL:** <https://discourse.cmake.org/t/investigating-mp-with-msvc/8247>\
**Category:** Code\
**Created:** [June 2, 2023, 10:18am UTC](https://discourse.cmake.org/t/investigating-mp-with-msvc/8247 "2023-06-02T10:18:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![imrichardcole](https://discourse.cmake.org/user_avatar/discourse.cmake.org/imrichardcole/32/3940_2.png) [@imrichardcole](https://discourse.cmake.org/u/imrichardcole)\
**Post date:** [June 2, 2023, 10:18am UTC](https://discourse.cmake.org/t/investigating-mp-with-msvc/8247/1 "2023-06-02T10:18:30Z")

</div>

Digging into the above, I noticed this file [CMake/CompileFlags.cmake at master · Kitware/CMake · GitHub](https://github.com/Kitware/CMake/blob/master/CompileFlags.cmake). Which at the very bottom has mention of /MP and how it’s controlled.

What is the purpose of this file? Whilst it’s there in git, it doesn’t seem to feature in the final product (not on Windows at least).

How does this file get used?

---

<div class="post-metadata">

**Author:** ![imrichardcole](https://discourse.cmake.org/user_avatar/discourse.cmake.org/imrichardcole/32/3940_2.png) [@imrichardcole](https://discourse.cmake.org/u/imrichardcole)\
**Post date:** [June 2, 2023, 12:28pm UTC](https://discourse.cmake.org/t/investigating-mp-with-msvc/8247/2 "2023-06-02T12:28:13Z")

</div>

Ah - so I believe I’ve worked out that this cmake file is actually for building cmake itself and not involved in the end product.
