a/ogl: Only link to EGL on Android

This commit is contained in:
Jakob Bornecrantz 2022-10-22 23:06:41 +01:00 committed by Ryan Pavlik
parent d33b2b136f
commit f9c6c0d016

View file

@ -19,7 +19,8 @@ if(XRT_HAVE_EGL)
target_sources(aux_ogl PRIVATE egl_api.c egl_api.h)
endif()
if(XRT_HAVE_OPENGLES)
# Only needed on Android
if(ANDROID AND XRT_HAVE_OPENGLES)
target_link_libraries(aux_ogl PUBLIC EGL::EGL)
endif()