Windows build with CMake?

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

1 Like

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:

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

I have all my cmake commands in makeall.bat