Skip to content

Don't recommend the use of FetchContent #29

Description

@eyalroz

The CMake FetchContent mechanism is an anti-pattern, and even if this project supports it - its use should not be recommended. CMake should be used to declare what a project needs, not give instructions on where to take it from. It is the user of the project (e.g. the developer who's building it) that is responsible for making the dependencies available - either via OS distribution packages; manually downloading, configuring, installing and setting a search path; or by using a provisioning manager like conan or vcpkg (which produces a CMake toolchain file).

See also this StackOverflow Q&A.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions