# CMAKE steps to generate VS2012 with Debugger PDB and Src file settings/configuration

**URL:** https://discourse.cmake.org/t/cmake-steps-to-generate-vs2012-with-debugger-pdb-and-src-file-settings-configuration/7319
**Category:** Code
**Tags:** os:windows, comp:msvc, gen:makefiles
**Created:** [January 26, 2023, 12:22am UTC](https://discourse.cmake.org/t/cmake-steps-to-generate-vs2012-with-debugger-pdb-and-src-file-settings-configuration/7319 "2023-01-26T00:22:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gagan\_hattar](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/g/eada6e/32.png) [@gagan\_hattar](https://discourse.cmake.org/u/gagan_hattar)
#### Post date: [January 26, 2023, 12:22am UTC](https://discourse.cmake.org/t/cmake-steps-to-generate-vs2012-with-debugger-pdb-and-src-file-settings-configuration/7319/1 "2023-01-26T00:22:56Z")

</div>

We are setting the **Debugging -\>Symbols** (.pdb) and **Common Properties \> Debug Source Files** on Solution ‘Application’ Property Pages dialog in **VS2012 IDE**.

Can we add these configurations in Cmake while generating VS2012 solution, part of auto-build/configuration process? If this is not supported at all in VS2012, can you suggest if this be achieved in VS2022 and how?

 ![VS2012_pdb_issue](https://discourse.cmake.org/uploads/default/original/2X/f/f82a39cb3fa49b297c010699ca4be2f2b0dd6a5c.png)

---

<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: [January 26, 2023, 2:18pm UTC](https://discourse.cmake.org/t/cmake-steps-to-generate-vs2012-with-debugger-pdb-and-src-file-settings-configuration/7319/2 "2023-01-26T14:18:53Z")

</div>

There’s support in CMake for telling the VS generators about custom properties: [`VS_USER_PROPS`](https://cmake.org/cmake/help/latest/prop_tgt/VS_USER_PROPS.html).

---

<div class="post-metadata">

### Author: ![gagan\_hattar](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/g/eada6e/32.png) [@gagan\_hattar](https://discourse.cmake.org/u/gagan_hattar)
#### Post date: [January 26, 2023, 5:12pm UTC](https://discourse.cmake.org/t/cmake-steps-to-generate-vs2012-with-debugger-pdb-and-src-file-settings-configuration/7319/3 "2023-01-26T17:12:01Z")

</div>

Hi Ben, is there any example for setting **Debugging -\>Symbols** (.pdb) and **Common Properties \> Debug Source Files** , we are not sure about the property names to use with [`VS_USER_PROPS`](https://cmake.org/cmake/help/latest/prop_tgt/VS_USER_PROPS.html)

---

<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: [January 26, 2023, 5:37pm UTC](https://discourse.cmake.org/t/cmake-steps-to-generate-vs2012-with-debugger-pdb-and-src-file-settings-configuration/7319/4 "2023-01-26T17:37:23Z")

</div>

I’d search Github or related places for people using them already. I don’t really use VS myself, so it’s not something I’m familiar with.
