Skip to content

Commit

Permalink
NativeAppBase: link with GL and GLX on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Feb 9, 2024
1 parent 0e84701 commit 1260993
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions NativeApp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,14 @@ elseif(PLATFORM_LINUX)
PRIVATE
X11::X11
)
if(GL_SUPPORTED)
find_package(OpenGL REQUIRED)
target_link_libraries(Diligent-NativeAppBase
PRIVATE
OpenGL::GL
OpenGL::GLX
)
endif()
target_include_directories(Diligent-NativeAppBase
PUBLIC
include/Linux
Expand Down

0 comments on commit 1260993

Please sign in to comment.