From 50dc0ffbceebe0f633bd63cd4710a3e2f548d688 Mon Sep 17 00:00:00 2001 From: Guilherme Janczak Date: Thu, 18 Apr 2024 10:58:08 +0000 Subject: port to OpenBSD --- Source/Core/VideoBackends/OGL/CMakeLists.txt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Source/Core/VideoBackends/OGL') diff --git a/Source/Core/VideoBackends/OGL/CMakeLists.txt b/Source/Core/VideoBackends/OGL/CMakeLists.txt index 8fb8524054..30c4f98ba2 100644 --- a/Source/Core/VideoBackends/OGL/CMakeLists.txt +++ b/Source/Core/VideoBackends/OGL/CMakeLists.txt @@ -27,14 +27,10 @@ add_library(videoogl VideoBackend.h ) -target_link_libraries(videoogl -PUBLIC - common - videocommon - -PRIVATE - ${X11_LIBRARIES} -) +target_link_libraries(videoogl PUBLIC common videocommon) +if(X11_FOUND) + target_link_libraries(videoogl PRIVATE PkgConfig::X11) +endif() if(MSVC) # Add precompiled header -- cgit v1.2.3