Clean cmake opengl warning ubuntu22 - #11442
Conversation
| cmake_minimum_required(VERSION 3.1.0) | ||
|
|
||
| # This policy provides compatibility with projects that expect the legacy GL library to be used. | ||
| if (POLICY CMP0072 AND UNIX AND NOT APPLE) |
There was a problem hiding this comment.
Can you explain why NOT APPLE?
There was a problem hiding this comment.
I understood from the ticket name that I need to fix the issue on U22.
Have we Apple machines to purpose seen new behavior?
There was a problem hiding this comment.
Looks like you are right,
You can verify on GHA, we have a mac machine
https://github.com/IntelRealSense/librealsense/actions/runs/4183814020/jobs/7248655076

There was a problem hiding this comment.
Ups, I saw it before)
May I run viewer on Mac and see live that all work correctly?
There was a problem hiding this comment.
Since you don't have a mac, you can only run MAC with a VM if you want
| # This policy provides compatibility with projects that expect the legacy GL library to be used. | ||
| if (POLICY CMP0072 AND UNIX AND NOT APPLE) | ||
| set(CMAKE_POLICY_DEFAULT_CMP0072 NEW) | ||
| message(STATUS "Policy CMP0072 setted: NEW") |
There was a problem hiding this comment.
No need to see this message..
There was a problem hiding this comment.
The comment was removed.
| # minimum required cmake version: 3.1.0 | ||
| cmake_minimum_required(VERSION 3.1.0) | ||
|
|
||
| # This policy provides compatibility with projects that expect the legacy GL library to be used. |
There was a problem hiding this comment.
Please update this generic comment,
if you think NEW should be used..
|
I just saw you place it on the main CMakelist, why is that? The best place to place it is here: |
You are right. |
OK, thats interesting, From the log we can see: Please try adding this (instead of other lines) BTW, why did you use another method than |
|
|
|
Tracking on [LRS-673]