# find\_package() / How to make coexist different versions of Boost ?

**URL:** https://discourse.cmake.org/t/find-package-how-to-make-coexist-different-versions-of-boost/15643
**Category:** Code
**Created:** [May 7, 2026, 2:45pm UTC](https://discourse.cmake.org/t/find-package-how-to-make-coexist-different-versions-of-boost/15643 "2026-05-07T14:45:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Oodini](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/o/db5fbb/32.png) [@Oodini](https://discourse.cmake.org/u/Oodini)
#### Post date: [May 7, 2026, 2:45pm UTC](https://discourse.cmake.org/t/find-package-how-to-make-coexist-different-versions-of-boost/15643/1 "2026-05-07T14:45:09Z")

</div>

Hello,

I am on Windows, and want to be able to choose in my projects among several versions of Boost and toolsets. Due to this variability, it seems I cannot use Boost\_ROOT.

How should I structure and declare the Boost directories ?

---

<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: [May 8, 2026, 6:24pm UTC](https://discourse.cmake.org/t/find-package-how-to-make-coexist-different-versions-of-boost/15643/2 "2026-05-08T18:24:03Z")

</div>

see [Forcing a locally installed Boost to be used instead of the system-level one](https://discourse.cmake.org/t/forcing-a-locally-installed-boost-to-be-used-instead-of-the-system-level-one/15549)

---

<div class="post-metadata">

### Author: ![Oodini](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/o/db5fbb/32.png) [@Oodini](https://discourse.cmake.org/u/Oodini)
#### Post date: [May 11, 2026, 6:20am UTC](https://discourse.cmake.org/t/find-package-how-to-make-coexist-different-versions-of-boost/15643/3 "2026-05-11T06:20:16Z")

</div>

Thanks, but this thread doesn’t mention the toolset point.
