# fetchcontent vs vcpkg, conan?

**URL:** https://discourse.cmake.org/t/fetchcontent-vs-vcpkg-conan/6578
**Category:** Usage
**Created:** [September 29, 2022, 3:04pm UTC](https://discourse.cmake.org/t/fetchcontent-vs-vcpkg-conan/6578 "2022-09-29T15:04:35Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [October 7, 2022, 10:00am UTC](https://discourse.cmake.org/t/fetchcontent-vs-vcpkg-conan/6578/5 "2022-10-07T10:00:04Z")

</div>

We [disabled header set verification](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/7535) for things brought into the build via `FetchContent`. I’d be open to a change that did a similar thing by default for `clang-tidy` and other co-compile checkers.

Potentially interesting way forward:

> [@How to prevent clang-tidy to check sources added with FetchContents?](https://discourse.cmake.org/t/how-to-prevent-clang-tidy-to-check-sources-added-with-fetchcontents/2871/9):
>
> CMake 3.25 is adding a new SYSTEM target property. It is initialised from a corresponding SYSTEM directory property, and both add\_subdirectory() and FetchContent\_Declare() are gaining an associated SYSTEM keyword as well. I’m starting to wonder if we may want to disable all linters, checkers and verification tasks on targets that have their SYSTEM property set to true. Maybe we could have a dedicated target property for whether checkers should be enabled in case someone wants to enable checking…

Older thread with more manual workaround:

> [@Disable warning on fetched projects](https://discourse.cmake.org/t/disable-warning-on-fetched-projects/1978):
>
> Hi, I wonder how I could disable warnings on header files, which are not part of my project (e.g. those in libaries I use and included via fetchContent). For instance I get: »bool std::uncaught\_exception()« is depcreated [-Wdeprecated-declarations] This is kinda annoying as I can’t really fix it, it’s not my code.

---

_[View the full topic](https://discourse.cmake.org/t/fetchcontent-vs-vcpkg-conan/6578)._
