From 35b941812a1ec962cd2f2b7d87a8d8a5d202d531 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Mon, 24 Oct 2022 11:33:55 +0100 Subject: [PATCH] c/client: Merge have EGL conditional file adding --- src/xrt/compositor/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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)