[CMake] List all packages

tonka tonka tonka3100 at gmail.com
Sun Jan 13 04:35:03 EST 2019


Hey,

As far as I know there is no such mechanism. But you can write a little
script f.e. in python (or cmake itself) which can do that, because it is
just a simple file search.

Greetings
Tonka

Am So., 13. Jän. 2019, 09:43 hat Lectem <lectem at gmail.com> geschrieben:

>
>
> Hi,
>
>
>
> Is there a way to list all the packages (both config files and
> find-modules) that find_package could find ?
>
> Could we even imagine this would also permit to list the variables and
> targets created in it ?
>
> I think that would be a very helpful to have for debugging find_package,
> especially when you don’t have access to the system having issues (user bug
> reports for example).
>
>
> Cheers,
>
> Lectem
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190113/2302e6f8/attachment.html>


More information about the CMake mailing list