Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Use premake instead of cmake  (Read 13185 times)

0 Members and 1 Guest are viewing this topic.

Paul

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
Use premake instead of cmake
« on: June 18, 2020, 01:09:51 am »
SFML compilation is not user friendly with current rocket scientist manual. Isn't possible to use premake for example instead of CMake for future versions? It's simple, readable, easily configurable, no problems with project structure, dependency or multiple projects in solution etc.

It should be 2 bulletproof tasks:
1) Download SFML repository (premake binary can be included there) with all needed 3rd party repositories by single command
2) Generate project/solution/whatever via batch file (or by equivalent script)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Use premake instead of cmake
« Reply #1 on: June 18, 2020, 01:22:40 am »
CMake is still the defacto standard for build system in the C++ library world, it's not perfect, but neither is any other tooling.
Using CMake does really full-fill your "bulletproof tasks"

1) Download SFML repository
2) Run cmake . && cmake --build . --target INSTALL or similar depending on the system in use

"I don't understand tool X so let's use tool Y instead" will cause you to waste a lot more time, than to invest some of that time into learning tool X. ;)

For the future, please don't try to hijack other threads with unrelated topics.
« Last Edit: June 18, 2020, 01:24:32 am by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/