# Is install() of a target with EXCLUDE\_FROM\_ALL == TRUE really undefined?

**URL:** <https://discourse.cmake.org/t/is-install-of-a-target-with-exclude-from-all-true-really-undefined/5666>\
**Category:** Code\
**Created:** [May 13, 2022, 8:06am UTC](https://discourse.cmake.org/t/is-install-of-a-target-with-exclude-from-all-true-really-undefined/5666 "2022-05-13T08:06:03Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![ClausKlein](https://discourse.cmake.org/user_avatar/discourse.cmake.org/clausklein/32/352_2.png) [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Post date:** [February 17, 2023, 6:30am UTC](https://discourse.cmake.org/t/is-install-of-a-target-with-exclude-from-all-true-really-undefined/5666/14 "2023-02-17T06:30:18Z")

</div>

OK, thanks 😕

**IMHO** : It is too complicated! 🤯  
see too [CMake Error: install(EXPORT "ProjectTargets" ...) includes target "xxx" which requires target "yyy" that is not in any export set.](https://discourse.cmake.org/t/cmake-error-install-export-projecttargets-includes-target-xxx-which-requires-target-yyy-that-is-not-in-any-export-set/7344)

and [Feature/exclude from all problem by ClausKlein · Pull Request #7 · ClausKlein/ModernCmakeStarter · GitHub](https://github.com/ClausKlein/ModernCmakeStarter/pull/7)

---

_[View the full topic](https://discourse.cmake.org/t/is-install-of-a-target-with-exclude-from-all-true-really-undefined/5666)._
