diff --git a/modules/FindMagnum.cmake b/modules/FindMagnum.cmake index a89527f4b..66f41f4fc 100644 --- a/modules/FindMagnum.cmake +++ b/modules/FindMagnum.cmake @@ -421,7 +421,7 @@ foreach(component ${Magnum_FIND_COMPONENTS}) set(_MAGNUM_${_COMPONENT}_INCLUDE_PATH_NAMES Context.h) # GLX context dependencies - if(${component} STREQUAL GlxStub) + if(${component} STREQUAL GlxContext) find_package(X11) if(X11_FOUND) set(_MAGNUM_${_COMPONENT}_LIBRARIES ${X11_LIBRARIES})