ROS2 编译的一些错误提醒

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 编译的一些错误提醒)