# Use of CMAKE\_PROJECT\_TOP\_LEVEL\_INCLUDES  in options.cmake

**URL:** <https://discourse.cmake.org/t/use-of-cmake-project-top-level-includes-in-options-cmake/9408>\
**Category:** Code\
**Created:** [November 10, 2023, 5:13pm UTC](https://discourse.cmake.org/t/use-of-cmake-project-top-level-includes-in-options-cmake/9408 "2023-11-10T17:13:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laxmi\_Jain](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/l/eada6e/32.png) [@Laxmi\_Jain](https://discourse.cmake.org/u/Laxmi_Jain)\
**Post date:** [November 10, 2023, 5:13pm UTC](https://discourse.cmake.org/t/use-of-cmake-project-top-level-includes-in-options-cmake/9408/1 "2023-11-10T17:13:49Z")

</div>

Hi,

I want to use CMAKE\_PROJECT\_TOP\_LEVEL\_INCLUDES through options.cmake instead of passing this as an argument to command line e.g

instead of using it like cmake -DCMAKE\_PROJECT\_TOP\_LEVEL\_INCLUDES=

I want to define it in options.cmake and then call cmake

cmake -B build

I tried doing so but it is not working. Can you please help?

Best Regards  
Laxmi Jain

---

<div class="post-metadata">

**Author:** ![Angew](https://discourse.cmake.org/user_avatar/discourse.cmake.org/angew/32/229_2.png) [@Angew](https://discourse.cmake.org/u/Angew)\
**Post date:** [November 13, 2023, 9:47am UTC](https://discourse.cmake.org/t/use-of-cmake-project-top-level-includes-in-options-cmake/9408/2 "2023-11-13T09:47:06Z")

</div>

Hi,

can you please post a minimal example of how you’re doing it that will demonstrate the problem?
