Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to build survive_publisher using catkin #309

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kbrameld
Copy link

@kbrameld kbrameld commented Jul 5, 2024

Revive the survive_in_catkin_make build property, for the ability to use catkin_tools to build survive_publisher. Property was originally added in 42bfce9, but functionality was lost during CMakeLists.txt refactor, whether intentional or not. With this change, libsurvive can be put in a catkin workspace, and be built simply by running catkin build. Without this change, the CMakeLists.txt will have a circular inclusion and fail to build.

Also, catkin_package() must be called before any targets are added with add_executable, so that has been moved further up in the CMakeLists.txt. Quoting ROS Wiki catkin - 6. catkin_package - "This function (catkin_package) must be called before declaring any targets with add_library() or add_executable()". Currently, with catkin_package being called after add_executable, the executables aren't built into the catkin devel/ space as expected.

@kbrameld kbrameld changed the title Revive the survive_in_catkin_make property, if built using catkin_make or catkin_tools Ability to build survive_publisher using catkin Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants