# CUSTOMBUILD : error : could not load cache on cmake \> 3.23.0

**URL:** https://discourse.cmake.org/t/custombuild-error-could-not-load-cache-on-cmake-3-23-0/6026
**Category:** Usage
**Created:** [July 7, 2022, 6:04pm UTC](https://discourse.cmake.org/t/custombuild-error-could-not-load-cache-on-cmake-3-23-0/6026 "2022-07-07T18:04:03Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![kmilo9999](https://discourse.cmake.org/user_avatar/discourse.cmake.org/kmilo9999/32/1246_2.png) [@kmilo9999](https://discourse.cmake.org/u/kmilo9999)
#### Post date: [July 8, 2022, 2:40pm UTC](https://discourse.cmake.org/t/custombuild-error-could-not-load-cache-on-cmake-3-23-0/6026/4 "2022-07-08T14:40:13Z")

</div>

It seems the problem comes from the command I am running:

`C:\Choreograph\src> cmake --build .\build`  
`Error: could not load cache`

However, when I run:

`C:\Choreograph\src> cmake -S . -B .\build`  
It does work.

I am trying to point out from the release notes what change from 3.22.5 to 3.23.0 that raises this error.

My build tree looks like this"

```auto
Choreograph/
    - samples
    - src
         - build
         - choreograph
         - CMakeLists.txt
         - ChoreographConfig.cmake
    - tests

```

Currently, I have a superbuild script on another project that downloads this library as an external dependency and links to it. The problematic command is the one run by the superbuild script, but I managed to generate the same error by [cloning the base library](https://github.com/brown-ccv/Choreograph/tree/stable/src) and run cmake form the `src` folder.

Any thoughts ?

Thank you for the help.

---

_[View the full topic](https://discourse.cmake.org/t/custombuild-error-could-not-load-cache-on-cmake-3-23-0/6026)._
