# i think i changed nothing but now cmake --build . don't want to work anymore

**URL:** <https://discourse.cmake.org/t/i-think-i-changed-nothing-but-now-cmake-build-dont-want-to-work-anymore/9069>\
**Category:** Code\
**Tags:** os:linux\
**Created:** [September 24, 2023, 5:49pm UTC](https://discourse.cmake.org/t/i-think-i-changed-nothing-but-now-cmake-build-dont-want-to-work-anymore/9069 "2023-09-24T17:49:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bytecounter](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/4491bb/32.png) [@bytecounter](https://discourse.cmake.org/u/bytecounter)\
**Post date:** [September 24, 2023, 5:49pm UTC](https://discourse.cmake.org/t/i-think-i-changed-nothing-but-now-cmake-build-dont-want-to-work-anymore/9069/1 "2023-09-24T17:49:07Z")

</div>

i made a few local changes and now cmake --build . won’t work anymore, here is the git diff output:  
[https://paste.debian.net/1292989/](https://paste.debian.net/1292989/)

when i run cmake . i get the following error:  
[https://paste.debian.net/1292990/](https://paste.debian.net/1292990/)

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Post date:** [September 24, 2023, 5:57pm UTC](https://discourse.cmake.org/t/i-think-i-changed-nothing-but-now-cmake-build-dont-want-to-work-anymore/9069/2 "2023-09-24T17:57:09Z")

</div>

I see one typo:

```diff
+set(CMAKE_PREFIX_PATH CHACHE ${OUTPUT_PATH})

```

Even the previous code looks odd as it does `CACHE STRING ${OUTPUT_PATH}` which makes `OUTPUT_PATH` the documentation string for the cache entry.

> [@bytecounter](#):
>
> when i run cmake . i get the following error:

I don’t see an error here. Is there other output that indicates an error available?

---

<div class="post-metadata">

**Author:** ![bytecounter](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/4491bb/32.png) [@bytecounter](https://discourse.cmake.org/u/bytecounter)\
**Post date:** [September 24, 2023, 6:10pm UTC](https://discourse.cmake.org/t/i-think-i-changed-nothing-but-now-cmake-build-dont-want-to-work-anymore/9069/3 "2023-09-24T18:10:43Z")

</div>

strange, after a bit playing around he told me the real error and now it’s working again, thanks for the fast reply. so you mean i should change CHACHE to STRING right ?

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Post date:** [September 24, 2023, 6:53pm UTC](https://discourse.cmake.org/t/i-think-i-changed-nothing-but-now-cmake-build-dont-want-to-work-anymore/9069/4 "2023-09-24T18:53:13Z")

</div>

It depends on what you want. If you want it in the cache (which I don’t recommend), then it is a typo for `CACHE`. See [the docs for `set(CACHE)`](https://cmake.org/cmake/help/latest/command/set.html#set-cache-entry) for the supported syntax.
