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

🧑‍🌾 CMake warning in Rolling Debug (Policy CMP0148) #291

Closed
Crola1702 opened this issue Apr 23, 2024 · 1 comment · Fixed by ros-visualization/python_qt_binding#137

Comments

@Crola1702
Copy link

Reference build: https://build.ros2.org/view/Rci/job/Rci__nightly-debug_ubuntu_noble_amd64/7/

Warnings:

  • Warning: shiboken_helpers.cmake:318 - Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
Output in package qt_gui_cpp:
 20929 -- Shiboken2Config: Using default python: .cpython-312-x86_64-linux-gnu
 20930 CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.15.13/shiboken_helpers.cmake:318 (find_package):
 20931   Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
 20932   are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
 20933   the cmake_policy command to set the policy and suppress this warning.
 20934 
 20935 Call Stack (most recent call first):
 20936   /usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.15.13/Shiboken2Config.cpython-312-x86_64-linux-gnu.cmake:44 (shiboken_find_required_python)
 20937   /usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.15.13/Shiboken2Config.cmake:5 (include)
 20938   /tmp/ws/install_isolated/python_qt_binding/share/python_qt_binding/cmake/shiboken_helper.cmake:24 (find_package)
 20939   src/qt_gui_cpp_shiboken/CMakeLists.txt:43 (include)
 20940 This warning is for project developers.  Use -Wno-dev to suppress it.
 20941 
 20942 -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.12.3", minimum required is "3")
 20943 CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.15.13/shiboken_helpers.cmake:319 (find_package):
 20944   Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
 20945   are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
 20946   the cmake_policy command to set the policy and suppress this warning.
 20947 
 20948 Call Stack (most recent call first):
 20949   /usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.15.13/Shiboken2Config.cpython-312-x86_64-linux-gnu.cmake:44 (shiboken_find_required_python)
 20950   /usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.15.13/Shiboken2Config.cmake:5 (include)
 20951   /tmp/ws/install_isolated/python_qt_binding/share/python_qt_binding/cmake/shiboken_helper.cmake:24 (find_package)
 20952   src/qt_gui_cpp_shiboken/CMakeLists.txt:43 (include)
 20953 This warning is for project developers.  Use -Wno-dev to suppress it.
@clalancette
Copy link
Contributor

This one is tough, because it is in the upstream shiboken packages. Probably we just need to suppress the warning in our shiboken CMake helper scripts. I'll add this one to the list.

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

Successfully merging a pull request may close this issue.

2 participants