vittorioromeo / SSVOpenHexagon

C++20 FOSS clone of "Super Hexagon". Depends on SSVStart, SSVEntitySystem, SSVLuaWrapper, SSVMenuSystem, JSONcpp, SFML2.0. Features JSON/LUA customizable game files, a soundtrack by BOSSFIGHT, pseudo-3D effects.
https://vittorioromeo.com/openhexagon.html
Other
610 stars 76 forks source link

Unknown CMake command CPMAddPackage #370

Closed Mailaender closed 2 years ago

Mailaender commented 2 years ago

I tried to package 2.0.6 for @openSUSE, but the build system is broken:

CMake Error at CMakeLists.txt:57 (CPMAddPackage):
   Unknown CMake command "CPMAddPackage".

How do I not make it download during the build?

Morxemplum commented 2 years ago

Hi! Due to @vittorioromeo updating the SFML version of the game to SFML 3, an upcoming version of SFML, trying to build the master branch at the moment will lead to build errors.

Try to clone and build on the current branch develop and see if this fixes your problem.

her001 commented 2 years ago

The error you are seeing definitely is not caused by SFML versions.

  1. If you are trying to build off the v2.0.6 tag, that doesn't include the SFML changes.
  2. The error is with the CPMAddPackage command in CMake, not an SFML build-related error.

Not sure why it isn't working, though. CPM.cmake should be downloaded and included earlier in the CMakeLists.txt file.

What version of CMake are you using?

Mailaender commented 2 years ago

@openSUSE has that disabled on purpose as downloading during the build is forbidden.