Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-9710

CMake warning for OpenGL setup (CMake policy CMP0072)

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Medium
    • Resolution: Fixed
    • None
    • 6.16/00, 6.18/00
    • Build System
    • None
    • Fedora 27

    Description

      We get the warning below from CMake in Fedora 27 due to CMake policy CMP0072. We need to choose and set the policy (preferably to NEW).

       -- Looking for OpenGL
      CMake Warning (dev) at /usr/share/cmake/Modules/FindOpenGL.cmake:270 (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/lib64/libGL.so
       
        and GLVND libraries for OpenGL and GLX:
       
          OPENGL_opengl_LIBRARY: /usr/lib64/libOpenGL.so
          OPENGL_glx_LIBRARY: /usr/lib64/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.
      Call Stack (most recent call first):
        cmake/modules/SearchInstalledSoftware.cmake:9 (_find_package)
        cmake/modules/SearchInstalledSoftware.cmake:501 (find_package)
        CMakeLists.txt:103 (include)
      This warning is for project developers.  Use -Wno-dev to suppress it.
       
      -- Found OpenGL: /usr/lib64/libOpenGL.so
      

       

      Attachments

        Activity

          People

            amadio Guilherme Amadio
            amadio Guilherme Amadio
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Actual End: