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

C++ challenge.

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

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!

Hey @mikkel-larsen you’ll need to install vcpkg, and set the VCPKG_ROOT environment variable to the path where vcpkg is installed.

Thank you!

1 Like

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