ros2 / rosidl_python

rosidl support for Python
Apache License 2.0
19 stars 45 forks source link

'Policy CMP0148 is not set' warning #209

Open bijoua29 opened 3 months ago

bijoua29 commented 3 months ago

Bug report

Required Info:

Steps to reproduce issue

Compile packages for ros2 messages

Expected behavior

No compiler warnings

Actual behavior

See following compiler warnings

CMake Warning (dev) at /opt/ros/rolling/share/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake:20 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first): /opt/ros/rolling/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include) /opt/ros/rolling/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:280 (ament_execute_extensions) CMakeLists.txt:71 (rosidl_generate_interfaces) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/ros/rolling/share/python_cmake_module/cmake/Modules/FindPythonExtra.cmake:52 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first): /opt/ros/rolling/share/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake:23 (find_package) /opt/ros/rolling/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include) /opt/ros/rolling/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:280 (ament_execute_extensions) CMakeLists.txt:71 (rosidl_generate_interfaces) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/ros/rolling/share/python_cmake_module/cmake/Modules/FindPythonExtra.cmake:140 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first): /opt/ros/rolling/share/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake:23 (find_package) /opt/ros/rolling/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include) /opt/ros/rolling/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:280 (ament_execute_extensions) CMakeLists.txt:71 (rosidl_generate_interfaces) This warning is for project developers. Use -Wno-dev to suppress it.

Additional information

clalancette commented 3 months ago

I think we just need to do new releases into Rolling to solve this. All of the code in the core should have already been updated to avoid this.

bijoua29 commented 3 months ago

@clalancette Thanks. I assume then it will get resolved in the next rolling sync. I will keep an eye on it and close this issue if resolved.