# Including a .cmake file

**URL:** https://discourse.cmake.org/t/including-a-cmake-file/7034
**Category:** Usage
**Created:** [December 8, 2022, 10:25am UTC](https://discourse.cmake.org/t/including-a-cmake-file/7034 "2022-12-08T10:25:18Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![willem](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/w/898d66/32.png) [@willem](https://discourse.cmake.org/u/willem)
#### Post date: [December 9, 2022, 7:02am UTC](https://discourse.cmake.org/t/including-a-cmake-file/7034/6 "2022-12-09T07:02:07Z")

</div>

Dear Craig:

THanks for your quick reaction. I was specifically confused about chapter 34.2 (13th edition), where the example includes the line:

list(APPEND CMAKE\_MODULE\_PATH ${CMAKE\_CURRENT\_LIST\_DIR}/cmake)

and then loads a module with include(dependencies.cmake). Since that is the only module loaded in the example, I concluded that it would reside in the cmake subdirectory (since otherwise above line would be superfluous). Anyhow, your response clarifies- thanks!

---

_[View the full topic](https://discourse.cmake.org/t/including-a-cmake-file/7034)._
