Skip to content

Warn if <export> <build_type> is not present in a CMake build #152

Description

@dvdmc

Hi, I am not sure if this is documented somewhere or if this should be an issue in the ament_cmake, and it's kind of aimed for ROS 2.

I noticed that if <build_type>ament_cmake<build_type> is not present in the package.xml. Even if ament_package() is declared in the CMakeLists.txt and ament_cmake is a buildtool_depend, the built package is not listed in the ament_index.

I think it could be quite easy to detect this case (presence of ament_cmake intention) and WARN the user. It would have saved me quite some pain today.

Let me know if this should be moved somewhere else or if this idea makes no sense.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions