summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoBackends')
-rw-r--r--Source/Core/VideoBackends/OGL/CMakeLists.txt12
1 files changed, 4 insertions, 8 deletions
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