From a96057866db0b5544a9e0e9f534c22884985abe9 Mon Sep 17 00:00:00 2001 From: Corentin Schreiber Date: Fri, 28 Aug 2020 08:27:20 +0100 Subject: [PATCH] Removed explicit link to Xcursor and rely on X11 interface target Co-authored-by: binary1248 --- src/SFML/Window/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/CMakeLists.txt b/src/SFML/Window/CMakeLists.txt index f564d3aa..982f4c40 100644 --- a/src/SFML/Window/CMakeLists.txt +++ b/src/SFML/Window/CMakeLists.txt @@ -245,7 +245,7 @@ target_include_directories(sfml-window PRIVATE "${PROJECT_SOURCE_DIR}/extlibs/he # find and setup usage for external libraries if(SFML_OS_LINUX OR SFML_OS_FREEBSD OR SFML_OPENBSD) sfml_find_package(X11 INCLUDE "X11_INCLUDE_DIR" LINK "X11_X11_LIB" "X11_Xrandr_LIB" "X11_Xcursor_LIB") - target_link_libraries(sfml-window PRIVATE X11 Xcursor) + target_link_libraries(sfml-window PRIVATE X11) endif() # CMake 3.11 and later prefer to choose GLVND, but we choose legacy OpenGL for backward compability