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

Policy CMP0072 is not set #991

Open
thx1111 opened this issue Feb 27, 2023 · 0 comments
Open

Policy CMP0072 is not set #991

thx1111 opened this issue Feb 27, 2023 · 0 comments
Assignees
Labels
cmake cmake build issue

Comments

@thx1111
Copy link

thx1111 commented Feb 27, 2023

CMake Warning (dev) at /usr/share/cmake/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
CMakeLists.txt
---------------------
...
SET(CMAKE_POLICY_DEFAULT_CMP0072 NEW)
...
@cjcliffe cjcliffe self-assigned this Apr 18, 2023
@cjcliffe cjcliffe added the cmake cmake build issue label Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake cmake build issue
Projects
None yet
Development

No branches or pull requests

2 participants