diff --git a/src/xrt/compositor/CMakeLists.txt b/src/xrt/compositor/CMakeLists.txt index df10d350a..e663ef8e6 100644 --- a/src/xrt/compositor/CMakeLists.txt +++ b/src/xrt/compositor/CMakeLists.txt @@ -41,8 +41,9 @@ endif() if(XRT_HAVE_EGL) target_sources( - comp_client PRIVATE client/comp_gl_eglimage_swapchain.c - client/comp_gl_eglimage_swapchain.h + comp_client + PRIVATE client/comp_gl_eglimage_swapchain.c client/comp_gl_eglimage_swapchain.h + client/comp_egl_client.c client/comp_egl_client.h ) endif() @@ -60,9 +61,6 @@ if(XRT_HAVE_OPENGL AND WIN32) client/comp_gl_win32_glue.c ) endif() -if(XRT_HAVE_EGL) - target_sources(comp_client PRIVATE client/comp_egl_client.c client/comp_egl_client.h) -endif() if(XRT_HAVE_D3D11 OR XRT_HAVE_D3D12) target_link_libraries(comp_client PRIVATE aux_d3d)