# In modern cmake, using many times include path for some function

**URL:** <https://discourse.cmake.org/t/in-modern-cmake-using-many-times-include-path-for-some-function/11688>\
**Category:** Code\
**Created:** [September 15, 2024, 8:58am UTC](https://discourse.cmake.org/t/in-modern-cmake-using-many-times-include-path-for-some-function/11688 "2024-09-15T08:58:54Z")\
**Posts on this page:** 1\
**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:** [September 15, 2024, 8:58am UTC](https://discourse.cmake.org/t/in-modern-cmake-using-many-times-include-path-for-some-function/11688/1 "2024-09-15T08:58:54Z")

</div>

Using so many `${CMAKE_CURRENT_SOURCE_DIR}/include` in the code.  
Is it must be add the head file to these function?

```auto
target_sources
target_include_directories
set_target_properties

```

> <https://github.com/Mizux/cmake-cpp/blob/main/Foo/CMakeLists.txt>
