Skip to content

Set OpenGL_GL_Preference to LEGACY#3

Open
scchow wants to merge 1 commit into
KavrakiLab:masterfrom
scchow:fix-opengl-pref-warn
Open

Set OpenGL_GL_Preference to LEGACY#3
scchow wants to merge 1 commit into
KavrakiLab:masterfrom
scchow:fix-opengl-pref-warn

Conversation

@scchow
Copy link
Copy Markdown

@scchow scchow commented Nov 22, 2022

Setting OpenGL_GL_Preference requires either LEGACY or GLVND without quotation marks.

Currently, when building roscpp_gl_depth_sim_demos (after #2 is applied), CMake warns that OpenGL_GL_Preference is unset and defaults to LEGACY since it does not recognize "GLVND".

In this PR, I have set OpenGL_GL_Preference to LEGACY which should preserve the same behavior as before, even though the intent seems to be to set it to GLVND.

Please let me know if I should amend the PR to set the preference to GLVND.

- OpenGL_GL_Preference requires either LEGACY or GLVND without
  quotation marks.
- Currently, on compilation, CMake warns that OpenGL_GL_Preference
  is unset and defaults to LEGACY.
- Set OpenGL_GL_Preference to LEGACY to ensure same behavior as before,
  even though the code intent seems to be to set it to GLVND.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant