[CMake] How to handle find_package inter-dependencies
Gregor Jasny
gjasny at googlemail.com
Mon May 19 05:03:15 EDT 2014
Hello,
for reference:
On 10/03/14 20:53, Gregor Jasny wrote:
> I wrote some FindXYZ modules that utilize FindPackageHandleStandardArgs
> to find precompiled libraries. Now I have to "find" a library that
> itself depends on another library and I wonder what's the recommended
> way to do so?
>
> I thought about nesting the find_package calls but then I have the
> problem of forwarding options like REQUIRED from the outmost invocation.
Just forward the quiet flags and nest the find_package calls:
https://gitorious.org/cmake/cmake/source/7246e635fe8312206b62a279b3c237d1cf584c83:Modules/FindPNG.cmake
-Gregor
More information about the CMake
mailing list