mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.54k stars 1.61k forks source link

Support using existing library builds of gmock and gtest #4876

Open Conan-Kudo opened 5 years ago

Conan-Kudo commented 5 years ago

gtest and gmock (part of Google Test) have not required being built from source to leverage them for years.

The Fedora package has offered libraries for a while now, and the Debian package does as well in stretch-backports and higher (buster and sid, too).

Please support using pre-built libraries for Google Mock and Google Test.

QuLogic commented 5 years ago

The dependency should check for pkgconfig files already.

Conan-Kudo commented 5 years ago

The documentation indicates otherwise: http://mesonbuild.com/Dependencies.html#gtest-and-gmock

wak-google commented 5 years ago

It does do the correct thing with using system sources assuming you aren't doing something like including them as a subproject. We have been using an external googletest / mock for a while in our builds.