# Cmake presets

**URL:** https://discourse.cmake.org/t/cmake-presets/14118
**Category:** Code
**Tags:** os:windows, gen:ninja
**Created:** [May 19, 2025, 2:28pm UTC](https://discourse.cmake.org/t/cmake-presets/14118 "2025-05-19T14:28:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![madam\_smith](https://discourse.cmake.org/user_avatar/discourse.cmake.org/madam_smith/32/5574_2.png) [@madam\_smith](https://discourse.cmake.org/u/madam_smith)
#### Post date: [May 19, 2025, 2:28pm UTC](https://discourse.cmake.org/t/cmake-presets/14118/1 "2025-05-19T14:28:18Z")

</div>

I’m working with CMake Presets and want to conditionally enable presets based on whether a specific SDK folder exists on disk. For example, I have presets for building against different SDK versions, and I want the preset to show up only if the corresponding SDK folder is present.

I’ve seen that `condition` fields in presets support things like environment variables and string comparisons, but I’m not sure if it’s possible to check if a folder (or file) actually exists on disk from within the preset condition.
