Closed fspindle closed 10 years ago
@fspindle: Thanks for providing this enhancement. The PREDEFINED tag (b8b71fc) looks good. I presume it works with your program?
While I personally favor uninstall support, I am reluctant to add 06797f8 because the catkin developers seem opposed to the idea, and I have no confidence that it interacts well with catkin and catkin workspaces.
@dirk-thomas, @wjwwood: do you have comments about that commit?
@jack-oquin Yes it works with my catkin package.
Shall I do a new PR without cmake changes (only PREDEFINED) ?
That would be cleaner. The other patch is really a separate issue.
I like uninstall, but feel I should wait to hear from Dirk and William before accepting a patch like that into a low-level ROS repository. If it were my own code, I would gladly try it.
I am just filling in as a maintainer of rosdoc_lite. I didn't write it and don't know it very well. But, I do know how to release ROS packages and fix simple problems.
Here is the PR with changes concerning only PREDEFINED https://github.com/ros-infrastructure/rosdoc_lite/pull/48
Merged #48, closing this one.
For the rosdoc_lite
package itself the uninstall might not make much sense.
On a global scale having the option for all catkin packages would indeed be useful. If someone would like to work on that, contribute code and make it a solid feature there is no reason not to include such a feature. But I haven't seen a "solution" for this which really worked well and therefore the feature does not exist in catkin yet.
There is nothing wrong with having an uninstall option, but in my experience they tend to rely on having an install manifest installed. CMake generates one, but it lives in the build space, so after the build space is removed uninstall no longer works.
I've done uninstall targets before:
https://github.com/segwayrmp/libsegwayrmp/blob/master/cmake/segwayrmp_targets.cmake#L54-68
But that is unix specific and only works as long as the build space is available. I don't oppose having an uninstall target in general, I just never saw a suggestion of how to do it robustly for all catkin packages.
I agree that it should only be done correctly if at all.
Follows discussion http://answers.ros.org/question/154676/how-to-introduce-the-doxygen-predefined-tag-in-rosdoc_lite/?answer=154841#post-id-154841
Fabien