From 7a9facf8c9523a948854d76a639768749bc65819 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Fri, 7 Jun 2024 16:03:56 +0200 Subject: [PATCH] replace epoxy target with traditional CMake includes and libraries --- components/pango_opengl/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/pango_opengl/CMakeLists.txt b/components/pango_opengl/CMakeLists.txt index a34a57738..5b8da9053 100644 --- a/components/pango_opengl/CMakeLists.txt +++ b/components/pango_opengl/CMakeLists.txt @@ -48,8 +48,9 @@ else() set(OpenGL_GL_PREFERENCE "GLVND") find_package(OpenGL REQUIRED COMPONENTS OpenGL EGL) find_package(epoxy REQUIRED) - target_link_libraries(${COMPONENT} PUBLIC epoxy::epoxy OpenGL::EGL) - target_include_directories(${COMPONENT} PUBLIC $) + target_link_libraries(${COMPONENT} PUBLIC OpenGL::OpenGL OpenGL::EGL) + target_link_libraries(${COMPONENT} PUBLIC ${epoxy_LIBRARIES}) + target_include_directories(${COMPONENT} PUBLIC $) target_compile_definitions(${COMPONENT} PUBLIC HAVE_EPOXY) else() # OpenGL defaults