From bff77eeed12751f166e940a5e3d520f03f2aa637 Mon Sep 17 00:00:00 2001 From: Niklas Behrens Date: Sun, 16 Jun 2013 03:17:20 +0200 Subject: [PATCH] Fix variable name for xf86vmode lib CMake bug 0006976 has been fixed. However, the variable name is different than expected. --- CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f73f4f1..2cba7a81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -199,11 +199,10 @@ if (_GLFW_X11) list(APPEND glfw_INCLUDE_DIRS ${X11_xf86vmode_INCLUDE_PATH}) set(GLFW_PKG_DEPS "${GLFW_PKG_DEPS} xxf86vm") - # NOTE: This is a workaround for CMake bug 0006976 (missing - # X11_xf86vmode_LIB variable) - if (X11_xf86vmode_LIB) - list(APPEND glfw_LIBRARIES ${X11_xf86vmode_LIB}) + if (X11_Xxf86vm_LIB) + list(APPEND glfw_LIBRARIES ${X11_Xxf86vm_LIB}) else() + # Backwards compatibility (see CMake bug 0006976) list(APPEND glfw_LIBRARIES Xxf86vm) endif()