# Windows build with CMake?

**URL:** <https://discuss.circleci.com/t/windows-build-with-cmake/34652>\
**Category:** Build Environment\
**Created:** [February 24, 2020, 9:38pm UTC](https://discuss.circleci.com/t/windows-build-with-cmake/34652 "2020-02-24T21:38:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CiaranWelsh](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@CiaranWelsh](https://discuss.circleci.com/u/CiaranWelsh)\
**Post date:** [February 24, 2020, 9:38pm UTC](https://discuss.circleci.com/t/windows-build-with-cmake/34652/1 "2020-02-24T21:38:14Z")

</div>

I want to use circleci to test my C++ cmake project on Linux/Windows/Mac. I’m starting with windows but it looks like we do not have access to cmake. I tried to download cmake remotely but I get an access denied error. Could somebody please tell me whether it is possible to get cmake on the windows orb?

Thanks

Ciaran

---

<div class="post-metadata">

**Author:** ![Toxe](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/toxe/32/24330_2.png) [@Toxe](https://discuss.circleci.com/u/Toxe)\
**Post date:** [March 8, 2020, 11:15am UTC](https://discuss.circleci.com/t/windows-build-with-cmake/34652/2 "2020-03-08T11:15:30Z")

</div>

Hey Ciaran, this is how I download and extract CMake in my own project:

```
    $ProgressPreference = "SilentlyContinue"
    Invoke-WebRequest -URI https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-win64-x64.zip -OutFile $Env:HOMEPATH\cmake-3.16.4-win64-x64.zip
    Expand-Archive $Env:HOMEPATH\cmake-3.16.4-win64-x64.zip -DestinationPath $Env:HOMEPATH

```

I use this in my own project:

> **[Toxe/example-cpp-ci-project](https://github.com/Toxe/example-cpp-ci-project)**
>
> Example C++ CI Project and CI Services Comparison. Contribute to Toxe/example-cpp-ci-project development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![rpasichnyk](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/rpasichnyk/32/25124_2.png) [@rpasichnyk](https://discuss.circleci.com/u/rpasichnyk)\
**Post date:** [June 13, 2020, 8:41am UTC](https://discuss.circleci.com/t/windows-build-with-cmake/34652/3 "2020-06-13T08:41:33Z")

</div>

```
  - run: choco install cmake -y
  - run: $env:Path+=";$Env:ProgramFiles\CMake\bin"; ./makeall.bat

```

I have all my cmake commands in `makeall.bat`
