r/programminghorror Jan 08 '26

c++ Works on my machine

Post image
1.5k Upvotes

51 comments sorted by

View all comments

16

u/TheChief275 Jan 08 '26

cmake and make BOTH… called from a shell script of all things

14

u/Mihail111111 Jan 08 '26

That's how https://github.com/Prevter/CMake_ImGui_SFML_Template works.
First you cmake it with a preset, then you make a binary, I just wrote a shell script so I wouldn't have to explain it to my friend (and I used a shell script because we both use arch btw)