Skip to content

Commit

Permalink
Fix linking the OpenGL library (#5299)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 authored Mar 15, 2022
1 parent 9eb1cf5 commit 25cafc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ endif()

# This is set to avoid linker errors when using GLVND-libs on Linux
if("${OpenGL_GL_PREFERENCE}" STREQUAL "GLVND")
link_libraries("GL")
link_libraries(OpenGL::GL)
add_compile_definitions(WL_USE_GLVND)
message(STATUS "Adding linker flags for GLVND.")
endif()
Expand Down

0 comments on commit 25cafc2

Please sign in to comment.