# How to set the FOLDER property for all Targets in a given subdirectory

**URL:** https://discourse.cmake.org/t/how-to-set-the-folder-property-for-all-targets-in-a-given-subdirectory/3384
**Category:** Usage
**Created:** [May 21, 2021, 4:20pm UTC](https://discourse.cmake.org/t/how-to-set-the-folder-property-for-all-targets-in-a-given-subdirectory/3384 "2021-05-21T16:20:56Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [May 21, 2021, 4:26pm UTC](https://discourse.cmake.org/t/how-to-set-the-folder-property-for-all-targets-in-a-given-subdirectory/3384/2 "2021-05-21T16:26:09Z")

</div>

A suitable approach is described in [this reply](https://discourse.cmake.org/t/clang-format-integration/3358/8), you can instead set the `FOLDER` property instead.

---

_[View the full topic](https://discourse.cmake.org/t/how-to-set-the-folder-property-for-all-targets-in-a-given-subdirectory/3384)._
