Where should I put third-party libraries?

后端 未结 3 1795
慢半拍i
慢半拍i 2021-02-05 16:46

I contribute to a decent-sized C++ project with a number of dependencies. The problem is, the project contains the source of all of its dependencies (e.g. pcre, zlib, etc.). I w

3条回答
  •  感情败类
    2021-02-05 17:17

    There's a fallacy in your statement: "I want to trim the project down to just what's relevant to the program itself."

    Believe me, the dependencies are extremely relevant to the program. If you don't have these in source control then you will encounter no end of problems when introducing new team members or when switching to a new workstation.

    Even if compile the "non-relevant" libraries, these compiled libraries should go into your source repository.

提交回复
热议问题