Open santagada opened 7 years ago
That means that the dependency is not available on your system. You need to add it with your distro package manager.
On macOS homebrew specifically doesn't come with it because you should directly download it yourself. I thought menson had support for macos. Conan and others download the soyrce during configuration.
Conan is a package manager; meson is a build tool.
Meson is a build system, like Autotools, CMake, Waf, etc. It does not handle automatic downloading of system dependencies. For that, you will need something like Macports, Homebrew, etc. I'm not sure what you're expecting Meson to do here.
Yeah I got it confused. I came from more modern languages that don't have a differing concept between downloading dependencies and build system. CMake does have support for downloading dependencies by using external packages (and is was biicode, hunter and other extensions for it use) but is Meson doesn't have it its fine.
Maybe docs should be clear about it specially when for what I've seen in the source the "automatic" resolution for gtest is just looking for it on linux specific paths (on macOS if a package manager would install gtest it would have to put it on /usr/local/src not on /usr/src).
In sum there is no ExternalProject (https://cmake.org/cmake/help/v3.0/module/ExternalProject.html) like in CMake?
If your system does not ship with gtest, then you can use the wrap dependency system and download it automatically from wrapdb.
Note however that because gtest is "special" you still need to write some code to compile it with your project specific settings. We should probably write some docs on how to do that.
well as I got the impression that meson didn't download sources for compilation I just learned enough CMake import the code for now. But please do write the docs for it meson does seems much less complicated than CMake and I would like to switch in the future.
Mesos docs says that if you depend on dependencies they will be resolved automatically, but I tried copying the example on https://github.com/mesonbuild/meson/tree/master/test%20cases/frameworks/3%20gmock and running mesos it only says dependency not found:
Is there any docs on how to make this work?