# On using \`find\_package(Threads)\`

**URL:** <https://discourse.cmake.org/t/on-using-find-package-threads/15346>\
**Category:** Code\
**Created:** [November 26, 2025, 8:32am UTC](https://discourse.cmake.org/t/on-using-find-package-threads/15346 "2025-11-26T08:32:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asimplecoder](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/a/f17d59/32.png) [@asimplecoder](https://discourse.cmake.org/u/asimplecoder)\
**Post date:** [November 26, 2025, 8:32am UTC](https://discourse.cmake.org/t/on-using-find-package-threads/15346/1 "2025-11-26T08:32:05Z")

</div>

It is unclear how to properly use the `find_package(Threads)`.

From the [original example](https://cmake.org/cmake/help/latest/module/FindThreads.html#examples), linking against the imported target does not seem to set any of the target `LINK_OPTIONS` / `LINK_FLAGS`. Is this expected and intended?

---

<div class="post-metadata">

**Author:** ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Post date:** [November 26, 2025, 9:16pm UTC](https://discourse.cmake.org/t/on-using-find-package-threads/15346/2 "2025-11-26T21:16:37Z")

</div>

Depending on the platform, there might or might not need to be any flags set. Just because you don’t see flags on one platform, that doesn’t mean there won’t be flags on another. The module shields the project from having to know about that by giving the project a target it can link to, and then the flags, if any, will be handled as an implementation detail.
