# Visual Studio Filter Issues "Cmake Rules"

**URL:** https://discourse.cmake.org/t/visual-studio-filter-issues-cmake-rules/1566
**Category:** Usage
**Tags:** gen:vs
**Created:** [July 15, 2020, 9:20pm UTC](https://discourse.cmake.org/t/visual-studio-filter-issues-cmake-rules/1566 "2020-07-15T21:20:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ymba9g8j9cjp0wloqf5y/32/1244_2.png) [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)
#### Post date: [July 15, 2020, 9:20pm UTC](https://discourse.cmake.org/t/visual-studio-filter-issues-cmake-rules/1566/1 "2020-07-15T21:20:16Z")

</div>

![image](https://discourse.cmake.org/uploads/default/original/1X/cb6a70bfcdd7992702b95dde28b0277b5daa0ae8.png)

Why is this filter CMake Rules being created when I create a Visual Studio project?

I don’t know what is causing it.

Any ideas would be appreciated.

---

<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: [November 11, 2020, 5:16pm UTC](https://discourse.cmake.org/t/visual-studio-filter-issues-cmake-rules/1566/2 "2020-11-11T17:16:28Z")

</div>

It appears to be created to store all of the `.rule` output targets. These are usually associated with custom commands or custom targets. I suppose it could be empty if you don’t have any of those in a project.

---

<div class="post-metadata">

### Author: ![YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ymba9g8j9cjp0wloqf5y/32/1244_2.png) [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)
#### Post date: [November 11, 2020, 5:24pm UTC](https://discourse.cmake.org/t/visual-studio-filter-issues-cmake-rules/1566/3 "2020-11-11T17:24:47Z")

</div>

I’ll try and create a minimal cmake project that highlights this issue.

I cannot share the code since it’s confidential.

---

<div class="post-metadata">

### Author: ![YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ymba9g8j9cjp0wloqf5y/32/1244_2.png) [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)
#### Post date: [November 11, 2020, 5:26pm UTC](https://discourse.cmake.org/t/visual-studio-filter-issues-cmake-rules/1566/4 "2020-11-11T17:26:06Z")

</div>

You are correct though I believe all this relates to custom targets/commands. I’ll get to it this week once I have the time.
