2 ms·
I picked up a project with make file and it’s insides were so horrible I switched the project to cmake. I asked ChatGPT to write the CmakeLists.txt for me and
by andrewstuart 4y ago
I picked up a project with make file and it’s insides were so horrible I switched the project to cmake.
I asked ChatGPT to write the CmakeLists.txt for me and after some debugging it worked.
- dTal 4y agoWell that's an interesting new level on the teetering tower of build systems. Perhaps, in the future, projects will simply include ChatGPT prompts instead of CmakeLists.txt directly. Or a script to generate the correct ChatGPT prompt...
- WesolyKubeczek 4y ago(A prompt (to generate a script to generate a prompt)^N) to generate CMakeLists.txt A prayer that the result is correct is not included.
- moffkalast 4y agoIt's kind of infuriating that CMakeLists even has to be manually made, because the compiler can clearly tell you what's wrong about almost every line in it if you mess it up. It should be completely doable to generate at least like 95% of it at compile time. Just so much repetitive boilerplate, like it was made by Oracle or something.
- andrewstuart 4y agoI don’t understand what you’re unhappy about.
- moffkalast 4y agoAbout having to specify all deps manually, all executable files, in which directories they are, which libs to link, etc. I mainly use it with ROS, where there's even more custom garbage to specify, like message building, package definitions and more. Don't forget to get it all in the correct order too and list every dep in the correct group depending on how it's used, or it won't compile. Fml. Things every modern language with a deps manager infers completely automatically without having to ever think about it. Sure it's understandable that C++ is still so far behind the times for legacy compatibility reasons, but I don't see why we haven't yet gradually moved towards something less tedious.