# \#include errors detected

**URL:** https://discourse.cmake.org/t/include-errors-detected/9615
**Category:** Usage
**Tags:** os:windows
**Created:** [December 12, 2023, 1:40am UTC](https://discourse.cmake.org/t/include-errors-detected/9615 "2023-12-12T01:40:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sea\_Sea](https://discourse.cmake.org/user_avatar/discourse.cmake.org/sea_sea/32/4025_2.png) [@Sea\_Sea](https://discourse.cmake.org/u/Sea_Sea)
#### Post date: [December 12, 2023, 1:40am UTC](https://discourse.cmake.org/t/include-errors-detected/9615/1 "2023-12-12T01:40:21Z")

</div>

I use the target\_link\_libraries, but the vscode IDE show the error.  
Do you know what is the reason?

CMakeLists.txt

```auto
add_executable(iam ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp)
target_link_libraries(iam PRIVATE LibDataChannel::LibDataChannel)

```

main.cpp

```auto
#include <rtc/rtc.hpp>

```

 ![image](https://discourse.cmake.org/uploads/default/original/2X/6/6d1886742c956db415f3371e9b9efe268e336035.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: [December 19, 2023, 3:09am UTC](https://discourse.cmake.org/t/include-errors-detected/9615/2 "2023-12-19T03:09:41Z")

</div>

Presumably the `LibDataChannel::LibDataChannel` is expected to provide the `rtc/rtc.hpp` header? Does its definition provide an `INTERFACE_INCLUDE_DIRECTORIES` property with a suitable value? You can ask CMake to “find” it by configuring with the `--trace-expand` flag and searching the output for the target name.
