# CMAKE is unable to build RP-2040-HAT-FREERTS-C

**URL:** https://discourse.cmake.org/t/cmake-is-unable-to-build-rp-2040-hat-freerts-c/9361
**Category:** Usage
**Tags:** os:windows, gen:ninja, tool:cmake
**Created:** [November 4, 2023, 1:32pm UTC](https://discourse.cmake.org/t/cmake-is-unable-to-build-rp-2040-hat-freerts-c/9361 "2023-11-04T13:32:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![alphabeta](https://discourse.cmake.org/user_avatar/discourse.cmake.org/alphabeta/32/3981_2.png) [@alphabeta](https://discourse.cmake.org/u/alphabeta)
#### Post date: [November 4, 2023, 1:32pm UTC](https://discourse.cmake.org/t/cmake-is-unable-to-build-rp-2040-hat-freerts-c/9361/1 "2023-11-04T13:32:17Z")

</div>

![Screenshot 2023-11-04 185619](https://discourse.cmake.org/uploads/default/original/2X/6/60c439dd568fe91ee253989c5d54c53b4362fa76.png)

PICO is installed in C drive there examples are easily build but when I am trying to build RP2040-HAT- FREERTOS-C which is installed in D drive it shows this error.

Please help me on this .

---

<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: [November 17, 2023, 1:31pm UTC](https://discourse.cmake.org/t/cmake-is-unable-to-build-rp-2040-hat-freerts-c/9361/2 "2023-11-17T13:31:06Z")

</div>

I suspect there is a toolchain file intended to be used here? If not, the `Ninja` generator requires that the environment be set up prior to using it; has VSCode set that environment up?
