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?



1 Like

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

    $ProgressPreference = "SilentlyContinue"
    Invoke-WebRequest -URI -OutFile $Env:HOMEPATH\
    Expand-Archive $Env:HOMEPATH\ -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