내가 보려고 만든 블로그

opengl cmake 경고창 뜰때 본문

OpenGL

opengl cmake 경고창 뜰때

hjh1023 2022. 6. 30. 18:00
반응형
CMake Warning (dev) at /usr/share/cmake-3.16/Modules/FindOpenGL.cmake:275 (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/x86_64-linux-gnu/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/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):
  CMakeLists.txt:25 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/my/cmakeTest/build/

cmake 했을때 되긴하는데!! 경고문구때문에 거슬리면

cmake -S .. -B build -Wno-dev

이렇게 쓰면 경고문구 안나옴 cmake -S 옆에 ..은 cmake는 현재경로 바깥에 있어서 그렇게 했음.

현재경로에서 쓸거면 .만 쓰면 됨... 근데 폴더안이 복잡해지니깐 build폴더에서 하는게 나을듯함

반응형