[libcamera-devel] [PATCH] lc-compliance: Only download a gtest subproject as a fallback

Javier Martinez Canillas javierm at redhat.com
Thu Feb 3 10:28:38 CET 2022


On 2/3/22 03:50, Hirokazu Honda wrote:
> Hi Laurent,

[snip]

>>> This change makes it impossible to build libcamera with clang++, if
>>> the installed libgest is built with different c++ standard library,
>>> unless meson.build is manually modified.
>>> Hmm, yeah maybe I should uninstall libgtest on my Debian.
>>
>> No need to, you can use meson magic :-)
>>
>> meson configure -Dforce_fallback_for=gtest
>>

I should probably had mentioned this in the commit message and also
that you can make meson to fallback for all wrap subprojects with:

    meson build --wrap-mode=forcefallback

I'll post a v2 mentioning these two commands to prevent others to
make this more clear.

>> and meson will fallback to the wrap for gtest, even if it is detected in
>> the system.
> 
> Aha, I didn't know the way. Thanks.
> 
> Reviewed-by: Hirokazu Honda <hiroh at chromium.org>
>

Thanks!

Best regards,
-- 
Javier Martinez Canillas
Linux Engineering
Red Hat



More information about the libcamera-devel mailing list