Skip to content

Commit 1260993

Browse files
NativeAppBase: link with GL and GLX on Linux
1 parent 0e84701 commit 1260993

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

NativeApp/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,14 @@ elseif(PLATFORM_LINUX)
468468
PRIVATE
469469
X11::X11
470470
)
471+
if(GL_SUPPORTED)
472+
find_package(OpenGL REQUIRED)
473+
target_link_libraries(Diligent-NativeAppBase
474+
PRIVATE
475+
OpenGL::GL
476+
OpenGL::GLX
477+
)
478+
endif()
471479
target_include_directories(Diligent-NativeAppBase
472480
PUBLIC
473481
include/Linux

0 commit comments

Comments
 (0)