[Buildroot] [PATCH 2/8] package/libiio: update cmake code for libxml2 detection

Samuel Martin s.martin49 at gmail.com
Mon Mar 2 20:35:36 UTC 2015


Hi Arnout, all,

On Tue, Jan 27, 2015 at 10:16 PM, Arnout Vandecappelle <arnout at mind.be> wrote:
> On 25/01/15 22:13, Samuel Martin wrote:
>> Only check for libxml2 when it is needed.
>>
>> This prevents CMake from falling back on the libxml2-config.cmake
>> installed on the host system (i.e. when libxml2 >=2.9.2 is part of the
>> host system), but not enabled as a target package (i.e. not existing in
>> the staging tree).
>
>  This is worrisome... I would hope that our cmake could be convinced never to
> look in /usr/share/cmake when cross-compiling...

I finally found some time to check the cmake thing, and it turns out
that it is possible to control cmake to not searching outside of the
sysroot.
I'll cook a patch doing it and respin the series shortly, and reject this patch.

Regards,


-- 
Samuel


More information about the buildroot mailing list