# QNX\_HOST environment variable not set

**URL:** https://discourse.cmake.org/t/qnx-host-environment-variable-not-set/5189
**Category:** Usage
**Tags:** gen:makefiles
**Created:** [March 8, 2022, 9:00am UTC](https://discourse.cmake.org/t/qnx-host-environment-variable-not-set/5189 "2022-03-08T09:00:22Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [March 10, 2022, 3:53am UTC](https://discourse.cmake.org/t/qnx-host-environment-variable-not-set/5189/5 "2022-03-10T03:53:32Z")

</div>

The toolchain must be set up outside of CMake; CMake cannot make environment settings available during the build for every generator, so it doesn’t provide such support. See [this thread](https://discourse.cmake.org/t/cmake-environment-variables-for-qnx-toolchain/4778) for more discussion of this.

---

_[View the full topic](https://discourse.cmake.org/t/qnx-host-environment-variable-not-set/5189)._
