-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Clean cmake opengl warning ubuntu22 #11442
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
Clean cmake opengl warning ubuntu22 #11442
Conversation
CMakeLists.txt
Outdated
@@ -1,6 +1,12 @@ | |||
# 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. | |||
if (POLICY CMP0072 AND UNIX AND NOT APPLE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why NOT APPLE
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you don't have a mac, you can only run MAC with a VM if you want
CMakeLists.txt
Outdated
# 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to see this message..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment was removed.
CMakeLists.txt
Outdated
@@ -1,6 +1,12 @@ | |||
# 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Tracking on [LRS-673]