# I can't understand an error about INTERFACE\_SOURCES and prefix

**URL:** https://discourse.cmake.org/t/i-cant-understand-an-error-about-interface-sources-and-prefix/10105
**Category:** Code
**Created:** [February 15, 2024, 4:00pm UTC](https://discourse.cmake.org/t/i-cant-understand-an-error-about-interface-sources-and-prefix/10105 "2024-02-15T16:00:05Z")
**Posts on this page:** 1
**Showing post:** 9

<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 18, 2024, 3:29am UTC](https://discourse.cmake.org/t/i-cant-understand-an-error-about-interface-sources-and-prefix/10105/9 "2024-02-18T03:29:56Z")

</div>

Note that `target_sources(PUBLIC FILE_SET headers TYPE HEADERS)` can list them and supports installing them (as a fileset) as well. This also ensures they show up in IDEs. Basically, with a fileset, CMake understands that they are headers and can do more with them (like setting up `target_include_directories` automatically).

---

_[View the full topic](https://discourse.cmake.org/t/i-cant-understand-an-error-about-interface-sources-and-prefix/10105)._
