# Add settings to visual studio, e.g., an exception or a plugin property

**URL:** https://discourse.cmake.org/t/add-settings-to-visual-studio-e-g-an-exception-or-a-plugin-property/14374
**Category:** Code
**Created:** [July 15, 2025, 8:13pm UTC](https://discourse.cmake.org/t/add-settings-to-visual-studio-e-g-an-exception-or-a-plugin-property/14374 "2025-07-15T20:13:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Zohar](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/z/45deac/32.png) [@Zohar](https://discourse.cmake.org/u/Zohar)
#### Post date: [July 15, 2025, 8:13pm UTC](https://discourse.cmake.org/t/add-settings-to-visual-studio-e-g-an-exception-or-a-plugin-property/14374/1 "2025-07-15T20:13:58Z")

</div>

I’d like to add settings to Visual Studio such as:

1. An exception (e.g., std::exception) to the “Exception Settings.” I have a list of them.
2. Set a plugin property: “Child Process Debugging”, enable.

Every time I run a clean cmake, I need to manually do this.

---

<div class="post-metadata">

### Author: ![nickvdbroeck](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/n/85f322/32.png) [@nickvdbroeck](https://discourse.cmake.org/u/nickvdbroeck)
#### Post date: [July 16, 2025, 9:25am UTC](https://discourse.cmake.org/t/add-settings-to-visual-studio-e-g-an-exception-or-a-plugin-property/14374/2 "2025-07-16T09:25:27Z")

</div>

hmm, I have been browsing the documentation for a while now, but I don’t really see a way to do this.  
I don’t see options in the Visual studio generators to set this part of the project. And certainly not for the plugins.  
I also searched if it is possible to give some sort of template to the generator, or if it is possible to run a script after generation to change the solution file (if that allows you to change these settings). But this link tells me that the latter is also not possible or a good idea: [https://stackoverflow.com/questions/7091447/run-command-after-generation-step-in-cmake](https://stackoverflow.com/questions/7091447/run-command-after-generation-step-in-cmake)

One other thing I was thinking about:  
You should check where these specific settings are stored in your project. If cleaning removes the settings, then it has to be somewhere in the folder. It could be in the solution file, or more likely somewhere in the hidden .vs folder.  
If there is indeed a file that stores this (and it is not the solution file), then you can keep a copy of those settings in your repo and tell cmake to copy that file into the .vs folder during the configuration phase.  
But it kind of all depends on where these specific settings are stored by Visual Studio.

But in general I don’t think there is a CMake way of doing what you want.

---

<div class="post-metadata">

### Author: ![Zohar](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/z/45deac/32.png) [@Zohar](https://discourse.cmake.org/u/Zohar)
#### Post date: [July 16, 2025, 10:10pm UTC](https://discourse.cmake.org/t/add-settings-to-visual-studio-e-g-an-exception-or-a-plugin-property/14374/3 "2025-07-16T22:10:54Z")

</div>

Thanks for checking.  
Good idea, I’ll look into it.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [February 20, 2026, 2:32pm UTC](https://discourse.cmake.org/t/add-settings-to-visual-studio-e-g-an-exception-or-a-plugin-property/14374/4 "2026-02-20T14:32:57Z")

</div>

The [`VS_USER_PROPS`](https://cmake.org/cmake/help/latest/prop_tgt/VS_USER_PROPS.html) target property is probably of interest here.
