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