# Access export target name list variables

**URL:** <https://discourse.cmake.org/t/access-export-target-name-list-variables/2850>\
**Category:** Usage\
**Created:** [February 26, 2021, 6:06pm UTC](https://discourse.cmake.org/t/access-export-target-name-list-variables/2850 "2021-02-26T18:06:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [March 1, 2021, 8:11pm UTC](https://discourse.cmake.org/t/access-export-target-name-list-variables/2850/4 "2021-03-01T20:11:08Z")

</div>

`cmake` distinguish if an `INTERFACE` is `imported` oder a `build library`.  
At least wenn you want to install your target.

see [Using a header only library with FetchContents while build a static lib](https://discourse.cmake.org/t/using-a-header-only-library-with-fetchcontents-while-build-a-static-lib/2711)

---

_[View the full topic](https://discourse.cmake.org/t/access-export-target-name-list-variables/2850)._
