[CMake] Calling of find_package from function

Andrey Upadyshev oliora at gmail.com
Fri Nov 7 10:23:54 EST 2014


Hello!

I'm writing a wrapper around find_package so I call find_package from my
own function. I found it's near impossible because all the variables set by
finders remain in the scope of my wrapper function, rather than in the
caller's scope. Is there any way to force find_package to set all variables
in my function caller's scope? I.e. something like find_package(...
PARENT_SCOPE)?

Thank you,
Andrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20141107/aa219cad/attachment.html>


More information about the CMake mailing list