Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Policy CMP0148 is not set' warning #209

Open
bijoua29 opened this issue Mar 21, 2024 · 2 comments
Open

'Policy CMP0148 is not set' warning #209

bijoua29 opened this issue Mar 21, 2024 · 2 comments
Labels

Comments

@bijoua29
Copy link

Bug report

Required Info:

  • Operating System:
    • Ubuntu 24.04
  • Installation type:
    • binaries
  • Version or commit hash:
    • rolling sync on 2024-03-13 (version to upgrade to Ubuntu 24.04)
  • DDS implementation:
    • Connext RMW
  • Client library (if applicable):
    • rclcpp

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
Copy link
Contributor

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
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants