Skip to content

Commit c8ae497

Browse files
committed
Link EGL library when building with GLES support
When building for GLES platforms, SOIL2 uses eglGetProcAddress but the EGL library wasn't being linked, causing undefined symbol errors at runtime on systems like Raspberry Pi OS. Fixes #926
1 parent db22c93 commit c8ae497

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

vendor/SOIL2/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ if(NOT TARGET OpenGL::EGL)
5252
PRIVATE
5353
SOIL_NO_EGL
5454
)
55+
else()
56+
target_link_libraries(SOIL2
57+
PUBLIC
58+
OpenGL::EGL
59+
)
5560
endif()
5661

5762
set_target_properties(SOIL2 PROPERTIES

0 commit comments

Comments
 (0)