# 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:** 3

<div class="post-metadata">

### Author: ![Oodini](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/o/db5fbb/32.png) [@Oodini](https://discourse.cmake.org/u/Oodini)
#### Post date: [February 15, 2024, 7:13pm UTC](https://discourse.cmake.org/t/i-cant-understand-an-error-about-interface-sources-and-prefix/10105/3 "2024-02-15T19:13:46Z")

</div>

Thanks for your answer. It’s great that the author of this article takes place.

I’m off for now. It is the evening here.  
The main difference with your project is that my library is splitted in several sublibraries (but there is only one binary at the end). So I have several subdirectories in my include directories. I had to use the loop, and to some adjustments (probably in a wrong way).

An other difference is that I have a test application in my project.

So I have something like that :

```auto
└── MyLibrary
    ├── CMakeLists.txt
    ├── include
    │ └── MyLibrary
    │ ├── SubLib1
    │ │ └── b.h
    │ ├── SubLib2
    │ │ └── c.h
    │ └── SubLib3
    │ └── d.h
    ├── src
    │ ├── CMakeLists.txt
    │ ├── SubLib1
    │ │ ├── a.h
    │ │ ├── a.cpp
    │ │ └── b.cpp
    │ └── SubLib3
    │ └── d.cpp
    └── test
        ├── CMakeLists.txt
        └── test.cpp

```

Buf for the CMakeLists.txt, you’ll have to wait some hours I came back to my office !

---

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