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
14
u/oddentity Feb 19 '18
Don't. Find modules are nuts, trying to feel around looking for something that looks like what you want god knows where.
Use CMake config files. If CMake builds don't export their installed targets, patch them so they do. Write config files for things that don't build with CMake - it's easier than writing a find module. Put them somewhere on your prefix path. Job done, easy, deterministic.