From 5b28107cca71f7927a0dbcc724725dd0565ea6d3 Mon Sep 17 00:00:00 2001 From: pmoulon Date: Tue, 27 Aug 2013 19:50:42 +0200 Subject: [PATCH] Better detection of the libXi --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 829a6436..d76ee826 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -205,7 +205,8 @@ if (_GLFW_X11) list(APPEND glfw_INCLUDE_DIRS ${X11_Xinput_INCLUDE_PATH}) list(APPEND glfw_LIBRARIES ${X11_Xinput_LIB}) - set(GLFW_PKG_DEPS "${GLFW_PKG_DEPS} xi") + find_library(XI_LIBRARY Xi) + list(APPEND glfw_LIBRARIES ${XI_LIBRARY}) # Check for Xf86VidMode (fallback gamma control) if (NOT X11_xf86vmode_FOUND)