# cmake-gui: "Error: could not load cache"

**URL:** https://discourse.cmake.org/t/cmake-gui-error-could-not-load-cache/13685
**Category:** Development
**Created:** [March 5, 2025, 6:27pm UTC](https://discourse.cmake.org/t/cmake-gui-error-could-not-load-cache/13685 "2025-03-05T18:27:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![buildSystemPerson](https://discourse.cmake.org/user_avatar/discourse.cmake.org/buildsystemperson/32/2851_2.png) [@buildSystemPerson](https://discourse.cmake.org/u/buildSystemPerson)
#### Post date: [March 5, 2025, 6:27pm UTC](https://discourse.cmake.org/t/cmake-gui-error-could-not-load-cache/13685/1 "2025-03-05T18:27:58Z")

</div>

I’m getting an error using CMake 4.0.0-rc2 (Not sure if it’s specific to this version).

```auto
~/projects/glslang$ cmake-gui -S . -B build
Error: could not load cache

```

However, it loads perfectly fine in cmake-gui. Minor issue that would be nice to fix before the official release.

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [March 5, 2025, 8:19pm UTC](https://discourse.cmake.org/t/cmake-gui-error-could-not-load-cache/13685/2 "2025-03-05T20:19:49Z")

</div>

This is long-standing behavior. I don’t plan to delay 4.0 for a fix to it, but I’d welcome a merge request addressing it.

---

<div class="post-metadata">

### Author: ![buildSystemPerson](https://discourse.cmake.org/user_avatar/discourse.cmake.org/buildsystemperson/32/2851_2.png) [@buildSystemPerson](https://discourse.cmake.org/u/buildSystemPerson)
#### Post date: [March 5, 2025, 8:25pm UTC](https://discourse.cmake.org/t/cmake-gui-error-could-not-load-cache/13685/3 "2025-03-05T20:25:06Z")

</div>

Makes sense, no reason to block on this then. I’ll update the title.

---

<div class="post-metadata">

### Author: ![buildSystemPerson](https://discourse.cmake.org/user_avatar/discourse.cmake.org/buildsystemperson/32/2851_2.png) [@buildSystemPerson](https://discourse.cmake.org/u/buildSystemPerson)
#### Post date: [March 5, 2025, 11:28pm UTC](https://discourse.cmake.org/t/cmake-gui-error-could-not-load-cache/13685/4 "2025-03-05T23:28:46Z")

</div>

I found the [issue](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/10429).
