CMake/Make problem when compiling C++

This page summarizes the projects mentioned and recommended in the original post on /r/cpp_questions

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Engine

    simple engine built on top of SFML (by TDSOJohn)

  • I'm not 100% sure this is the correct place to post it because it might be a CMake/Make problem or a C++ one. So, I've just bought a M1 computer. First thing, I download homebrew and use it to install CMake and SFML. All works as expected, but then I clone and build my github repos. First one ( https://github.com/TDSOJohn/Engine ) works flawlessly, cmake generates the make file and CLang compiles everything. I also test the Engine by building the example I wrote, 0 problems, it links with SFML and everything runs smoothly.

  • CAmusic

    simple 1d cellular automata to MIDI program

  • Same parent folder, I clone https://github.com/TDSOJohn/CAmusic (with `--recurse-submodules to install Engine, nlohmann_json and some other stuff), build the Engine (the example too, just to check it) and the other externals. 0 problems. I then run the CAmusic (main) CMakeLists.txt and everything breaks apart. This is the error:

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • cmake-init

    The missing CMake project initializer

  • Take a look at cmake-init, vcpkg and this example that shows how to pull dependencies from git(hub) using vcpkg's overlay ports.

  • cmake-init-vcpkg-example

    cmake-init generated executable project with vcpkg integration

  • Take a look at cmake-init, vcpkg and this example that shows how to pull dependencies from git(hub) using vcpkg's overlay ports.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts