Fix variable name for xf86vmode lib

CMake bug 0006976 has been fixed. However, the variable name is
different than expected.
This commit is contained in:
Niklas Behrens 2013-06-16 03:17:20 +02:00
parent e93bade240
commit bff77eeed1

View File

@ -199,11 +199,10 @@ if (_GLFW_X11)
list(APPEND glfw_INCLUDE_DIRS ${X11_xf86vmode_INCLUDE_PATH}) list(APPEND glfw_INCLUDE_DIRS ${X11_xf86vmode_INCLUDE_PATH})
set(GLFW_PKG_DEPS "${GLFW_PKG_DEPS} xxf86vm") set(GLFW_PKG_DEPS "${GLFW_PKG_DEPS} xxf86vm")
# NOTE: This is a workaround for CMake bug 0006976 (missing if (X11_Xxf86vm_LIB)
# X11_xf86vmode_LIB variable) list(APPEND glfw_LIBRARIES ${X11_Xxf86vm_LIB})
if (X11_xf86vmode_LIB)
list(APPEND glfw_LIBRARIES ${X11_xf86vmode_LIB})
else() else()
# Backwards compatibility (see CMake bug 0006976)
list(APPEND glfw_LIBRARIES Xxf86vm) list(APPEND glfw_LIBRARIES Xxf86vm)
endif() endif()