r/cpp • u/CalligrapherThese606 • Jul 21 '22
CMake is a hell of a software, period.
Really CMake is good only for one thing being the sacred build generator system in the c/cpp world.
F*** the weird syntax and werid structures.
edit 1: some might argue it's the best avaiable solution to the problem domain, and it is. the problem is the syntax, the unintiutive way of specifiying option and simple compile parameters and options and lack of examples and resources on how to do the simplist things is a wasting too much time.
yeah modern cmake that encourge using targets and their properties is by far a lot better but still is extremely unintuitve due to the syntax and logic around it.
sorry for the typos.
edit 2:
i am really considering changing my main language for personal projects to rust or the new thing called carbon by google at least there is not a hell of backward compatibility garbage i need to know.
4
u/deeringc Jul 21 '22
I don't really agree. We use cmake calling out to some python scripts for more complex stuff (eg automatically generated language bindings), on all major platforms with at least 1/3 of a 300-400 developer team developing on Windows. Setting up python is a non-issue. If you can't get python setup on a Windows machine you have no business near a complex C++ codebase.