# How cmake search custom system and language from specific directories?

**URL:** https://discourse.cmake.org/t/how-cmake-search-custom-system-and-language-from-specific-directories/607
**Category:** Usage
**Tags:** os:linux
**Created:** [February 10, 2020, 10:13am UTC](https://discourse.cmake.org/t/how-cmake-search-custom-system-and-language-from-specific-directories/607 "2020-02-10T10:13:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lijianzhong](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/l/a5b964/32.png) [@lijianzhong](https://discourse.cmake.org/u/lijianzhong)
#### Post date: [February 10, 2020, 10:13am UTC](https://discourse.cmake.org/t/how-cmake-search-custom-system-and-language-from-specific-directories/607/1 "2020-02-10T10:13:54Z")

</div>

Our project need to add some custom system and custom language support. But we don’t want to make change to cmake program. So if i put the languange extension in PROJECT\_ROOT/cmake/modules/ and PROJECT\_ROOT/cmake/modules/platform, can cmake find these extensions from these dir? Is there extra works need i do?

---

<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 16, 2020, 12:57am UTC](https://discourse.cmake.org/t/how-cmake-search-custom-system-and-language-from-specific-directories/607/2 "2020-02-16T00:57:21Z")

</div>

You’ll need to modify `CMAKE_MODULE_PATH` before the `project()` or `enable_language()` call for your custom language and platform.
