Skip to content

Commit 25cafc2

Browse files
authored
Fix linking the OpenGL library (#5299)
1 parent 9eb1cf5 commit 25cafc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ endif()
272272

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

0 commit comments

Comments
 (0)