I'm working on a multiplatform CMake project that depends on SDL2. I'm currently putting the SDL2 dlls in a directory in my project and committing them through git-lfs. A post-build CMake step is then able to copy the DLLs to the output folder without other developers needing to track them down and manually copy them over.

My question is: is this bad practice? Are there downsides that I'm not considering?

I can think of two alternatives:

  1. Use some method to find the DLLs in the syspath and copy them from there.
  2. Have a script or build step that checks for the files and downloads them if not present.
  • Short answer: you are doing fine, this AFAIK is a popular working solution. As alternatives, google for "artifact repository". – Doc Brown Apr 26 at 9:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.