Thanks for the answers

        You can visualize dependencies between targets with Graphvis:

This is not really what I need, I want to see all the available packages 
installed on my PC (package registry, Find_XXX modules …), not the hierarchy of 
targets in a cmakelists.txt


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

Aw that’s sad, I’d like to avoid writing my own script because there are a lot 
of things to take into account based on the platform.
It would be better if I could invoke cmake from the commandline to do this.

Should such feature-request be sent to the mailing list or gitlab ?




De : Konstantin Podsvirov
Envoyé le :dimanche 13 janvier 2019 11:23
À : Cmake Mailing List
Objet :Re: [CMake] List all packages

Hello, Lectem.

11:43, 13 January 2019 г., Lectem <lec...@gmail.com>:
 
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

You can visualize dependencies between targets with Graphvis:

https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/Graphviz

--
With regards,
Konstantin Podsvirov

-- 

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

Reply via email to