3 ms·
What bothers me about CMake is that I don't know how to use it and I can't find anybody who actually does. Seems like CMake configurations just kind of "happen
by MathMonkeyMan 4y ago
What bothers me about CMake is that I don't know how to use it and I can't find anybody who actually does.
Seems like CMake configurations just kind of "happen" by trial and error, perhaps starting with a configuration copied from another project. It's not a language, it's a thing that you hack on to get the job done.
Another gripe is often when I look up "how to do X in CMake," the docs refer me to a feature that is more recent than the CMake packaged in common distros and for which there are few (no?) real world examples.
If somebody has a more constructivist approach to CMake, I'd like to try it.
- mathstuf 4y agoIMO, the way to structure things is around the "usage requirements" model where a target declares everything needed to know how to "use" the target. Flags, libraries, includes, etc. The guide[1] goes through the basics at least; it can get a lot more complex with generator expression usage. FD: CMake developer [1] https://cmake.org/cmake/help/latest/guide/tutorial/index.html https://cmake.org/cmake/help/latest/guide/tutorial/index.htm...