# CMakePresets.json : include

**URL:** https://discourse.cmake.org/t/cmakepresets-json-include/8366
**Category:** Usage
**Created:** [June 20, 2023, 9:17pm UTC](https://discourse.cmake.org/t/cmakepresets-json-include/8366 "2023-06-20T21:17:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![phread](https://discourse.cmake.org/user_avatar/discourse.cmake.org/phread/32/2285_2.png) [@phread](https://discourse.cmake.org/u/phread)
#### Post date: [June 20, 2023, 9:17pm UTC](https://discourse.cmake.org/t/cmakepresets-json-include/8366/1 "2023-06-20T21:17:54Z")

</div>

I am writing CMakePresets.json for a project which has hundreds of executables.  
(It is a test suite for C++, but that should not be too important.)  
The problem is that I get the following error.

```plaintext
CMake Error: Could not read presets from <project-dir>: Duplicate presets

```

There are many presets, not hundreds but still quite a few.  
Is there a way to get a more detailed message, possibly telling me the names of the duplicates?

I am aware of the `configurationPresets:debug` and its friends but they only seem to work after the CMakePresets.json has been successfully processed.

---

<div class="post-metadata">

### Author: ![phread](https://discourse.cmake.org/user_avatar/discourse.cmake.org/phread/32/2285_2.png) [@phread](https://discourse.cmake.org/u/phread)
#### Post date: [June 21, 2023, 5:50pm UTC](https://discourse.cmake.org/t/cmakepresets-json-include/8366/2 "2023-06-21T17:50:39Z")

</div>

The latest version in the master branch has greatly improved the error messages.

```plaintext
CMake Error: Could not read presets from C:/Users/me/proj:
Duplicate preset: "cb-foo"

```
