# Getting an error building qt6.3.3 open source

**URL:** https://discourse.cmake.org/t/getting-an-error-building-qt6-3-3-open-source/10535
**Category:** Usage
**Created:** [March 29, 2024, 11:44pm UTC](https://discourse.cmake.org/t/getting-an-error-building-qt6-3-3-open-source/10535 "2024-03-29T23:44:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![RickF](https://discourse.cmake.org/user_avatar/discourse.cmake.org/rickf/32/4453_2.png) [@RickF](https://discourse.cmake.org/u/RickF)
#### Post date: [March 29, 2024, 11:44pm UTC](https://discourse.cmake.org/t/getting-an-error-building-qt6-3-3-open-source/10535/1 "2024-03-29T23:44:42Z")

</div>

The EXCLUDE\_FROM\_ALL property of target “qtdiag” varies by configuration.  
This is not supported by the “Visual Studio 17 2022” generator.

Is there a way to work around this?

---

<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: [April 11, 2024, 4:11pm UTC](https://discourse.cmake.org/t/getting-an-error-building-qt6-3-3-open-source/10535/2 "2024-04-11T16:11:10Z")

</div>

[The docs](https://cmake.org/cmake/help/latest/prop_tgt/EXCLUDE_FROM_ALL.html) for the property state:

> [@](#):
>
> Only the “Ninja Multi-Config” generator supports a property value that varies by configuration. For all other generators the value of this property must be the same for all configurations.

So it is known to not be supported today. I’m not sure what would be required to support it in the Visual Studio or Xcode generators.
