美文网首页
ROS2 编译的一些错误提醒

ROS2 编译的一些错误提醒

作者: andyhacker | 来源:发表于2019-08-02 11:03 被阅读0次

    cmake 版本问题

    Policy CMP0057 is not set: Support new IN_LIST if() operator
    

    Make Warning (dev) at /opt/ros/dashing/share/ament_cmake_core/cmake/core/list_append_unique.cmake:30 (if):
    Policy CMP0057 is not set: Support new IN_LIST if() operator. Run "cmake
    --help-policy CMP0057" for policy details. Use the cmake_policy command to
    set the policy and suppress this warning.

    IN_LIST will be interpreted as an operator when the policy is set to NEW.
    Since the policy is not set the OLD behavior will be used.
    Call Stack (most recent call first):
    /opt/ros/dashing/share/rclcpp/cmake/ament_cmake_export_dependencies-extras.cmake:36 (list_append_unique)
    /opt/ros/dashing/share/rclcpp/cmake/rclcppConfig.cmake:38 (include)
    CMakeLists.txt:22 (find_package)
    This warning is for project developers. Use -Wno-dev to suppress it.

    CMake Error at /opt/ros/dashing/share/ament_cmake_core/cmake/core/list_append_unique.cmake:30 (if):
    if given arguments:

    "NOT" "element" "IN_LIST" "rclcpp_RECURSIVE_DEPENDENCIES"

    Unknown arguments specified
    Call Stack (most recent call first):
    /opt/ros/dashing/share/rclcpp/cmake/ament_cmake_export_dependencies-extras.cmake:36 (list_append_unique)
    /opt/ros/dashing/share/rclcpp/cmake/rclcppConfig.cmake:38 (include)
    CMakeLists.txt:22 (find_package) **

    For the CMake issue, changing the cmake minumum required version to 3.5 should fix it.
    

    https://github.com/ros2/freertps/issues/37

    相关文章

      网友评论

          本文标题:ROS2 编译的一些错误提醒

          本文链接:https://www.haomeiwen.com/subject/cmgkdctx.html