# CMAKE\_\<LANG\>\_FLAGS omits Swift?

**URL:** <https://discourse.cmake.org/t/cmake-lang-flags-omits-swift/14101>\
**Category:** Code\
**Created:** [May 15, 2025, 2:28pm UTC](https://discourse.cmake.org/t/cmake-lang-flags-omits-swift/14101 "2025-05-15T14:28:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smcdowell](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@smcdowell](https://discourse.cmake.org/u/smcdowell)\
**Post date:** [May 15, 2025, 2:28pm UTC](https://discourse.cmake.org/t/cmake-lang-flags-omits-swift/14101/1 "2025-05-15T14:28:08Z")

</div>

Looking at the docs for CMAKE\_\<LANG\>\_FLAGS, Swift is not in the list of languages.

Is this an omission in the docs or does Swift not use this variable?

---

<div class="post-metadata">

**Author:** ![etcwilde](https://discourse.cmake.org/user_avatar/discourse.cmake.org/etcwilde/32/5255_2.png) [@etcwilde](https://discourse.cmake.org/u/etcwilde)\
**Post date:** [May 27, 2025, 4:31pm UTC](https://discourse.cmake.org/t/cmake-lang-flags-omits-swift/14101/2 "2025-05-27T16:31:27Z")

</div>

Swift definitely uses `CMAKE_Swift_FLAGS`. I don’t believe there is an environment variable hooked up to control it though.
