HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

What package managers are supported on Microsoft hosted agents with CMake enabled?

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
cmakeenabledpackagewhatarewithagentsmicrosofthostedsupported

Problem

Here, I can read that it is possible to setup a CMake build on a Microsoft hosted vsts agent. What C++ package managers (e.g. Conan) are supported for these agents?

It would be great if at least one of these package managers is supported: https://github.com/nlohmann/json#package-managers

Solution

According to this page, the hosted agent supports NuGet, npm, and Maven.

It looks like it might also support pip.
You could install cget using pip and then use cget to install your package. A bit of a roundabout way, but it might do what you need.

"C:\Program Files\Python36\Scripts\pip" install cget
cget install nlohmann/json


I don't have a way to test this right now, but I will try some real examples and edit tomorrow if I have time.

Since it is a CMake/Git project, you could also just clone the repository (or add it as a submodule) and build it every time. Since I often use libraries that aren't managed, I tend to take this route and leverage the caching that many CI platforms offer to keep my build times low. Sadly, it looks like VSTS hasn't gotten to this yet.

Code Snippets

"C:\Program Files\Python36\Scripts\pip" install cget
cget install nlohmann/json

Context

StackExchange DevOps Q#4404, answer score: 1

Revisions (0)

No revisions yet.