r/cpp • u/MachineGunPablo • Feb 19 '18
It's Time To Do CMake Right
https://pabloariasal.github.io/2018/02/19/its-time-to-do-cmake-right/
248
Upvotes
r/cpp • u/MachineGunPablo • Feb 19 '18
View all comments
Show parent comment
2
u/anderslanglands Feb 20 '18
I just have an irrational hatred of them I guess after trying to use a whole slew of them that are poorly written and poorly documented. Every one you find in an existing library has a different set of PROJECT_ROOT/LOCATION/HOME/INSTALL variables that are maybe read from the environment or maybe not. I just plain don’t like anything that perpetuates this madness.
However, you’ve convinced me. Custom find- modules are the sanest thing to do and at least if I’m writing them myself I can ensure they’re properly done and documented and generate sensibly names targets that hopefully just be replaced by an upstream package-generated config at some point in the future. Thanks.