On Sat, Oct 12, 2024 at 11:20 PM, Aleksandar Nikolic wrote:

> 
> While writing this, it occurred to me whether we really need to export the
> Deps.cmake file and especially find_package(PkgConfig) line. So I just
> performed two tests: (1) I removed the find_package(PkgConfig) line from
> our Deps.cmake file and (2) I completely removed the export of the
> Deps.cmake file. The result: the Yocto build works in both cases, so I am
> wondering why we even export the Deps.cmake file through Config.cmake...
> Maybe because we also build on Windows/Ubuntu and export our packages with
> Conan, I'll double check with my colleagues next week.
> 
> 

I stand corrected. If I completely remove the export of the Deps.cmake file, 
the build fails because of transient calls in cmake Macros/Function. For 
example project A calls macroB() defined in project B, while macroB() further 
calls macroC() defined in project C. So if BConfig.cmake (which is included by 
A) does not contain find_package(C) (which it would if exporting Deps.cmake 
which contains that call), building A fails, because macroC() is not defined, 
as no one calls find_package(C)-

> 
> 
> Aleksandar
> 
> 
>> Alex
> 
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64016): https://lists.yoctoproject.org/g/yocto/message/64016
Mute This Topic: https://lists.yoctoproject.org/mt/108943953/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to