Building mongo-cxx-driver using CMake ExternalProject_Add
问题 I am trying to build mongo-cxx-driver in a CMake based project. This project is supposed to build on Windows, macOS and in an ubuntu container and I want to ensure that my software on all these platforms will use the same driver version so I cannot afford installing the driver and its dependencies via apt-get , brew etc. So I am left with one option: ExternalProject_Add . But I am having difficulty making that work given how libmongoc is setup. Below is the CMake module I currently have.