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

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"

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 and run cmake form the src folder.

Any thoughts ?

Thank you for the help.