aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-01-24 11:10:07 +0100
committerPierre Ossman <ossman@cendio.se>2024-01-24 11:10:07 +0100
commita5982bd9913e7817ced01cde7bcac8438f81c8e3 (patch)
tree705b6dabe3b2da6e5cf5fcf61ae63a2922c7dcb4
parent0bec9f984a5369f0bf6af07649fe164c998890c8 (diff)
downloadtigervnc-a5982bd9913e7817ced01cde7bcac8438f81c8e3.tar.gz
tigervnc-a5982bd9913e7817ced01cde7bcac8438f81c8e3.zip
Remove superfluous X11_FOUND check
It is REQUIRED in this context, so we can assume X11 has been found.
-rw-r--r--unix/x0vncserver/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/x0vncserver/CMakeLists.txt b/unix/x0vncserver/CMakeLists.txt
index 08b346f1..b9f6bd01 100644
--- a/unix/x0vncserver/CMakeLists.txt
+++ b/unix/x0vncserver/CMakeLists.txt
@@ -27,28 +27,28 @@ if (LIBSYSTEMD_FOUND)
target_link_libraries(x0vncserver ${LIBSYSTEMD_LIBRARIES})
endif()
-if(X11_FOUND AND X11_XTest_LIB)
+if(X11_XTest_LIB)
add_definitions(-DHAVE_XTEST)
target_link_libraries(x0vncserver ${X11_XTest_LIB})
else()
message(WARNING "No XTest extension. x0vncserver will be view-only.")
endif()
-if(X11_FOUND AND X11_Xdamage_LIB)
+if(X11_Xdamage_LIB)
add_definitions(-DHAVE_XDAMAGE)
target_link_libraries(x0vncserver ${X11_Xdamage_LIB})
else()
message(WARNING "No DAMAGE extension. x0vncserver will have to use the slower polling method.")
endif()
-if(X11_FOUND AND X11_Xfixes_LIB)
+if(X11_Xfixes_LIB)
add_definitions(-DHAVE_XFIXES)
target_link_libraries(x0vncserver ${X11_Xfixes_LIB})
else()
message(WARNING "No XFIXES extension. x0vncserver will not be able to show cursors.")
endif()
-if(X11_FOUND AND X11_Xrandr_LIB)
+if(X11_Xrandr_LIB)
add_definitions(-DHAVE_XRANDR)
target_link_libraries(x0vncserver ${X11_Xrandr_LIB})
else()