Closed janekb04 closed 3 years ago
The issue is caused by find_package(OpenGL REQUIRED)
in line 39. Currently I have solved it in my code with set(CMAKE_POLICY_DEFAULT_CMP0072 NEW)
.
Thanks!
@Perlmint I saw that in the referenced commit, you set the policy to LEGACY
. Shouldn't it be set to NEW
instead to use the new OpenGL libraries instead of the legacy ones?
I think it should be set to NEW
as the CMake documentation states that the OLD
behaviour is deprecated and may be removed.
@Perlmint I saw that in the referenced commit, you set the policy to
LEGACY
. Shouldn't it be set toNEW
instead to use the new OpenGL libraries instead of the legacy ones?
Hmm... Actually, OpenGL_GL_PREFERENCE
doesn't affect this cmake - I noticed after pushing it 😠. I selected LEGACY
to avoid changing any behaviour. I just wanted to avoid the warning.
I think it should be set to NEW as the CMake documentation states that the OLD behaviour is deprecated and may be removed.
You're right. It should be changed to NEW
at last. I'll change it soon.
Thanks a lot!
Using GLVND
at a79115599b7941cddb3f3b336cc1ad0e5bfc3efa - same behaviour as NEW
of CMP0072
Currently when building with with CMake 3.16.3 and above, the following warning is issued
I think this policy has to be set with
cmake_policy(SET CMP0072 NEW)