# CMake was unable to find a build program corresponding to "Unix Makefiles"

**URL:** <https://forum.codecrafters.io/t/cmake-was-unable-to-find-a-build-program-corresponding-to-unix-makefiles/8760>\
**Category:** Challenges\
**Tags:** challenge:http-server\
**Created:** [April 14, 2025, 3:43pm UTC](https://forum.codecrafters.io/t/cmake-was-unable-to-find-a-build-program-corresponding-to-unix-makefiles/8760 "2025-04-14T15:43:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikkel-larsen](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/mikkel-larsen/32/9158_2.png) [@mikkel-larsen](https://forum.codecrafters.io/u/mikkel-larsen)\
**Post date:** [April 14, 2025, 3:43pm UTC](https://forum.codecrafters.io/t/cmake-was-unable-to-find-a-build-program-corresponding-to-unix-makefiles/8760/1 "2025-04-14T15:43:19Z")

</div>

C++ challenge.

When I try to run the `your_program.sh` on my Mac to test my code, I get the error

```auto
CMake Error at /opt/homebrew/share/cmake/Modules/CMakeDetermineSystem.cmake:152 (message):
  Could not find toolchain file: /scripts/buildsystems/vcpkg.cmake
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

```

Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [April 15, 2025, 12:57am UTC](https://forum.codecrafters.io/t/cmake-was-unable-to-find-a-build-program-corresponding-to-unix-makefiles/8760/4 "2025-04-15T00:57:55Z")

</div>

Hey @mikkel-larsen you’ll need to install [vcpkg](https://vcpkg.io/en/), and set the `VCPKG_ROOT` environment variable to the path where vcpkg is installed.

 ![65709e65b1a009f56d9c1b1da526a5289e8a5b30_2_1380x724](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/b/b91481ed58922daf34d03f077b643b47a724e464.png)

---

<div class="post-metadata">

**Author:** ![mikkel-larsen](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/mikkel-larsen/32/9158_2.png) [@mikkel-larsen](https://forum.codecrafters.io/u/mikkel-larsen)\
**Post date:** [April 18, 2025, 9:04am UTC](https://forum.codecrafters.io/t/cmake-was-unable-to-find-a-build-program-corresponding-to-unix-makefiles/8760/6 "2025-04-18T09:04:49Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [April 23, 2025, 9:05am UTC](https://forum.codecrafters.io/t/cmake-was-unable-to-find-a-build-program-corresponding-to-unix-makefiles/8760/7 "2025-04-23T09:05:24Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
