# CMake target\_include\_directories doesn't export to compile\_commands.json when using CUDA

**URL:** https://discourse.cmake.org/t/cmake-target-include-directories-doesnt-export-to-compile-commands-json-when-using-cuda/10072
**Category:** Usage
**Tags:** lang:cuda
**Created:** [February 12, 2024, 9:55pm UTC](https://discourse.cmake.org/t/cmake-target-include-directories-doesnt-export-to-compile-commands-json-when-using-cuda/10072 "2024-02-12T21:55:17Z")
**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: [February 17, 2024, 6:24am UTC](https://discourse.cmake.org/t/cmake-target-include-directories-doesnt-export-to-compile-commands-json-when-using-cuda/10072/2 "2024-02-17T06:24:35Z")

</div>

> [@SidYaj](#):
>
> `target_include_directories(main PUBLIC ${LIBCONGIG++_INCLUDE_DIRS})`

Did you perhaps mean `LIBCONFIG++_INCLUDE_DIRS` here?

---

_[View the full topic](https://discourse.cmake.org/t/cmake-target-include-directories-doesnt-export-to-compile-commands-json-when-using-cuda/10072)._
