# CMake error at CMakeLists.txt

**URL:** https://discourse.cmake.org/t/cmake-error-at-cmakelists-txt/10817
**Category:** Usage
**Tags:** os:windows
**Created:** [May 7, 2024, 5:41pm UTC](https://discourse.cmake.org/t/cmake-error-at-cmakelists-txt/10817 "2024-05-07T17:41:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MarlonB](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@MarlonB](https://discourse.cmake.org/u/MarlonB)
#### Post date: [May 7, 2024, 5:41pm UTC](https://discourse.cmake.org/t/cmake-error-at-cmakelists-txt/10817/1 "2024-05-07T17:41:52Z")

</div>

I’m trying to compile a lib (Anjay LwM2M) that I got from github, but the following message is displayed at the terminal:  
C:\Projetos\Anjay\Anjay\>cmake .  
– Building for: NMake Makefiles  
CMake Error at CMakeLists.txt:10 (project):  
Running

‘nmake’ ‘-?’

failed with:

no such file or directory

CMake Error: CMAKE\_C\_COMPILER not set, after EnableLanguage  
– Configuring incomplete, errors occurred!

It’s the first time I used Cmake, so I’m unaware of the cause. Thanks for any kind of support.

---

<div class="post-metadata">

### Author: ![scivision](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@scivision](https://discourse.cmake.org/u/scivision)
#### Post date: [May 7, 2024, 10:18pm UTC](https://discourse.cmake.org/t/cmake-error-at-cmakelists-txt/10817/2 "2024-05-07T22:18:12Z")

</div>

If you want to use visual studio, run that command form the visual studio command prompt
