Skip to content

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 Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants