From 52ea11f06dd492f34b3cc0b39a9c805beecafcff Mon Sep 17 00:00:00 2001 From: Nazarenko Mykyta Volodymyrovych Date: Sat, 3 Oct 2026 17:30:29 +0200 Subject: [PATCH] build: link OpenGL::GLES3 instead of OpenGL::OpenGL on OpenBSD (#432) --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc263b45..ae9083b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,8 +71,11 @@ target_include_directories( PRIVATE "./src" "./src/include" "./protocols" "${CMAKE_BINARY_DIR}") set_target_properties(aquamarine PROPERTIES VERSION ${AQUAMARINE_VERSION} SOVERSION 14) -target_link_libraries(aquamarine OpenGL::EGL OpenGL::OpenGL PkgConfig::deps Threads::Threads) - +if(CMAKE_SYSTEM_NAME MATCHES "OpenBSD") + target_link_libraries(aquamarine OpenGL::EGL OpenGL::GLES3 PkgConfig::deps Threads::Threads) +else() + target_link_libraries(aquamarine OpenGL::EGL OpenGL::OpenGL PkgConfig::deps Threads::Threads) +endif() check_include_file("sys/timerfd.h" HAS_TIMERFD) pkg_check_modules(epoll IMPORTED_TARGET epoll-shim) if(NOT HAS_TIMERFD AND epoll_FOUND)