aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ois/0002-fix-cmake4.patch
blob: 55c65890eadf1dcc32a8e1c38fb50c10936417c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f65b86000d..c06b1dd64d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -188,8 +188,7 @@ endif()
 if(UNIX)
 
     if (NOT APPLE)
-        add_dependencies(OIS X11)
-        target_link_libraries(OIS X11)
+        target_link_libraries(OIS X11::X11)
     endif()
 
     set_target_properties(OIS PROPERTIES