Skip to content

Commit

Permalink
dep/glad: Fix Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Sep 17, 2023
1 parent db9d70d commit 7fc4b89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dep/glad/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ target_link_libraries(glad PRIVATE Threads::Threads "${CMAKE_DL_LIBS}")
if(WIN32)
target_sources(glad PRIVATE src/glad_wgl.c)
else()
if(USE_EGL)
if(ENABLE_EGL)
target_sources(glad PRIVATE src/glad_egl.c)
target_link_libraries(glad PRIVATE EGL::EGL)
endif()
if(USE_X11)
if(ENABLE_X11)
target_sources(glad PRIVATE src/glad_glx.c)
endif()
endif()

0 comments on commit 7fc4b89

Please sign in to comment.