From fc573bc5841c3fb1fd44013d572ceaf39439f74a Mon Sep 17 00:00:00 2001 From: Corentin Schreiber Date: Thu, 20 Aug 2020 21:19:59 +0100 Subject: [PATCH] Added Xcursor to linux dependencies --- .travis.yml | 1 + src/SFML/Window/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5d6d646b..953ae090 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ addons: apt_packages: - cmake - libxrandr-dev + - libxcursor-dev - libudev-dev - libopenal-dev - libflac-dev diff --git a/src/SFML/Window/CMakeLists.txt b/src/SFML/Window/CMakeLists.txt index bd9571b4..f564d3aa 100644 --- a/src/SFML/Window/CMakeLists.txt +++ b/src/SFML/Window/CMakeLists.txt @@ -244,8 +244,8 @@ 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") - target_link_libraries(sfml-window PRIVATE X11) + 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) endif() # CMake 3.11 and later prefer to choose GLVND, but we choose legacy OpenGL for backward compability