# Prevent FetchContent\_MakeAvailable to execute CMakeLists.txt

**URL:** https://discourse.cmake.org/t/prevent-fetchcontent-makeavailable-to-execute-cmakelists-txt/12704
**Category:** Usage
**Created:** [October 7, 2024, 5:02pm UTC](https://discourse.cmake.org/t/prevent-fetchcontent-makeavailable-to-execute-cmakelists-txt/12704 "2024-10-07T17:02:03Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [October 7, 2024, 9:03pm UTC](https://discourse.cmake.org/t/prevent-fetchcontent-makeavailable-to-execute-cmakelists-txt/12704/3 "2024-10-07T21:03:33Z")

</div>

Use the `SOURCE_SUBDIR` option and set it to a path that doesn’t exist. [Issue 26220](https://gitlab.kitware.com/cmake/cmake/-/issues/26220) asks for a dedicated keyword to say “don’t add the subdirectory, only populate it”.

---

_[View the full topic](https://discourse.cmake.org/t/prevent-fetchcontent-makeavailable-to-execute-cmakelists-txt/12704)._
