# Included cmak files as system?

**URL:** https://discourse.cmake.org/t/included-cmak-files-as-system/6838
**Category:** Usage
**Created:** [November 10, 2022, 3:34pm UTC](https://discourse.cmake.org/t/included-cmak-files-as-system/6838 "2022-11-10T15:34:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![TJO\_BIT](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/t/41988e/32.png) [@TJO\_BIT](https://discourse.cmake.org/u/TJO_BIT)
#### Post date: [November 10, 2022, 3:34pm UTC](https://discourse.cmake.org/t/included-cmak-files-as-system/6838/1 "2022-11-10T15:34:14Z")

</div>

HI

I include a CMAKE file from a vendor in my own cmake file with:

**include($ENV{VENDOR\_PATH}/tools/low/cmake/gpg.cmake)**

If I build I get all warnings when the files are builded. I can disable all warnings in my cmake file, but I dont whant to.  
Is it possible to include that vendor CMAKE as a sytem, just as I can in target\_include\_ ??

TJ

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [November 11, 2022, 1:58pm UTC](https://discourse.cmake.org/t/included-cmak-files-as-system/6838/2 "2022-11-11T13:58:33Z")

</div>

No, there’s no concept of “ignore warnings in this file I do not control” in CMake.
