# troubles with CMAKE\_MODULE\_PATH

**URL:** https://discourse.cmake.org/t/troubles-with-cmake-module-path/9648
**Category:** Development
**Created:** [December 16, 2023, 5:03am UTC](https://discourse.cmake.org/t/troubles-with-cmake-module-path/9648 "2023-12-16T05:03:46Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bytecounter](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/4491bb/32.png) [@bytecounter](https://discourse.cmake.org/u/bytecounter)
#### Post date: [December 16, 2023, 5:03am UTC](https://discourse.cmake.org/t/troubles-with-cmake-module-path/9648/1 "2023-12-16T05:03:46Z")

</div>

Hello,  
i’ve troubles to include a .cmake files that i’ve saved in `${CMAKE_SOURCE_DIR}`  
but i adde:

```cmake
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/buildsytem/cmake)
include("buildtools")

```

but the path buildsystem/cmake exists and the file buildtools.cmake also existsl… what am i doing wrong here ?

---

<div class="post-metadata">

### Author: ![bytecounter](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/4491bb/32.png) [@bytecounter](https://discourse.cmake.org/u/bytecounter)
#### Post date: [December 16, 2023, 5:12am UTC](https://discourse.cmake.org/t/troubles-with-cmake-module-path/9648/2 "2023-12-16T05:12:43Z")

</div>

i get the error message:

```auto
Make Error at CMakeLists.txt:6 (include):
  include could not find requested file:

    basictools

```

---

<div class="post-metadata">

### Author: ![bytecounter](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/4491bb/32.png) [@bytecounter](https://discourse.cmake.org/u/bytecounter)
#### Post date: [December 17, 2023, 5:39am UTC](https://discourse.cmake.org/t/troubles-with-cmake-module-path/9648/3 "2023-12-17T05:39:39Z")

</div>

```auto
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/buildsytem/cmake)
include("basictools")

```

and the file /buildsystem/cmake/basictools.cmake exists.

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [December 17, 2023, 8:56pm UTC](https://discourse.cmake.org/t/troubles-with-cmake-module-path/9648/4 "2023-12-17T20:56:32Z")

</div>

MODERATOR NOTE: This thread is essentially posting the same thing as your [earlier thread](https://discourse.cmake.org/t/troubles-findine-cmake-file-but-ive-set-cmake-module-path-to-the-right-directory/9649), and even within this post you have repeated an earlier comment with no new information in a later post. Please do not open multiple threads on the same topic or add new posts that simply repeat details. You should be able to edit your own posts if you want to fix or improve them later (within reason, you may find the spam bot blocks you if you do it more than once or twice).

It looks like your `list()` command has a typo. It specifies `buildsytem` instead of `buildsystem`.

---

<div class="post-metadata">

### Author: ![bytecounter](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/4491bb/32.png) [@bytecounter](https://discourse.cmake.org/u/bytecounter)
#### Post date: [December 18, 2023, 8:21am UTC](https://discourse.cmake.org/t/troubles-with-cmake-module-path/9648/5 "2023-12-18T08:21:05Z")

</div>

thank you, i really have to look closer to the stuff i type
