Skip to content

Commit

Permalink
replace epoxy target with traditional CMake includes and libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch authored and christian-rauch committed Jun 7, 2024
1 parent 650e1a1 commit 13e4a18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/pango_opengl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<BUILD_INTERFACE:${OPENGL_EGL_INCLUDE_DIRS}>)
target_link_libraries(${COMPONENT} PUBLIC OpenGL::OpenGL OpenGL::EGL)
target_link_libraries(${COMPONENT} PUBLIC ${epoxy_LIBRARIES})
target_include_directories(${COMPONENT} PUBLIC $<BUILD_INTERFACE:${epoxy_INCLUDE_DIRS}>)
target_compile_definitions(${COMPONENT} PUBLIC HAVE_EPOXY)
else()
# OpenGL defaults
Expand Down

0 comments on commit 13e4a18

Please sign in to comment.