# Should manifest.xml add include cflags for package automatically?

When creating a package whose header files will be included by others, we have to add the following to the manifest.xml as per to specify the package's include path.

<export>
<cpp cflags="-I\${prefix}/include" />
</export>


Should this be done automatically as it's done for libraries?

edit retag close merge delete

Sort by » oldest newest most voted

Not all packages export the same location and some don't export anything, thus we do not do it automatically.

It is our convention that we usually do the same place, but it's not required. This is especially true for python packages etc.

more

the problem is that when building a package (with rosbuild) it locates its libraries (as indicated in cmakelist), then you to build a new package and it needs libraries from another package, you do not remember how it worked the old package. If the package son knows where the libraries (no flags), because the parent not?, just put the package name in the manifest and its libraries in cmakelist.

more