# Building with audio component only

**URL:** <https://discourse.libsdl.org/t/building-with-audio-component-only/31160>\
**Category:** Game Development\
**Created:** [April 7, 2021, 7:06am UTC](https://discourse.libsdl.org/t/building-with-audio-component-only/31160 "2021-04-07T07:06:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![LazerBlazer](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/l/fbc32d/32.png) [@LazerBlazer](https://discourse.libsdl.org/u/LazerBlazer)\
**Post date:** [April 7, 2021, 11:18pm UTC](https://discourse.libsdl.org/t/building-with-audio-component-only/31160/2 "2021-04-07T23:18:03Z")

</div>

If SDL2’s CMake can make you opt out these components, it does not make sense that it will search it again and throw undefined references.

Adding it back will make the lib and exe size the same as you would not opting these components out.

---

_[View the full topic](https://discourse.libsdl.org/t/building-with-audio-component-only/31160)._
