Ask Your Question
0

Why do I exactly need package.xml?

asked 2015-11-06 05:05:30 -0500

msporyshev gravatar image

Cause I need to duplicate all my build dependencies when I call find_package, then I need to set them into catkin_package, then i need to set add_dependencies. How does package.xml help me?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-11-06 08:58:50 -0500

gvdhoorn gravatar image

updated 2015-11-06 09:02:09 -0500

Short answer (from @Dirk Thomas):

[..] the CMake file is not "machine readable". It can contain arbitrary logic in CMake and can't be read without interpreting the CMake code. The XML on the other hand can easily be read.

Longer answer: see CMakeLists.txt vs package.xml.


Edit:

[..] then i need to set add_dependencies [..]

Just a note: that is only required to make sure code generation for message and service definitions is run before any of the files that include those get compiled (you need to 'help' CMake a bit to understand the dependency hierarchy there). In general: no code generation to depend on, no need for add_dependencies(..).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-11-06 05:05:30 -0500

Seen: 172 times

Last updated: Nov 06 '15