ros-visualization / qt_gui_core

BSD 3-Clause "New" or "Revised" License
37 stars 76 forks source link

:farmer: CMake warning in Rolling Debug (Policy CMP0148) #291

Closed Crola1702 closed 4 months ago

Crola1702 commented 4 months ago

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

Warnings:

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 commented 4 months ago

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.